这是indexloc提供的服务,不要输入任何密码
Skip to content

Conversation

@mpolicki
Copy link

@mpolicki mpolicki commented Jul 1, 2021

actions/checkout@v2 is necessary because with v1, pushing the newly created tag failed with fatal: could not read Username for 'https://github.com': No such device or address.

The default source name should be nuget.org because https://api.nuget.org/v3/index.json seems to be available by default under the name nuget.org. Previously, the code checked whether the provided source (default api.nuget.org) was in existing sources, and if it was, assumed that it was under the name default, which didn't work.

options has to be initialized to { } because https.get fails silently otherwise, which is what was happening in the non-GPR case.

URL logging should happen for both GPR and non-GPR.

mpolicki added 2 commits July 1, 2021 01:34
Change default source name to "nuget.org".
Properly initialize options for https.get.
Always log request URL.
@Rebel028 Rebel028 merged commit a9eb343 into Rebel028:master Jul 1, 2021
@Rebel028
Copy link
Owner

Rebel028 commented Jul 1, 2021

Thanks for contributing @mpolicki

New version v2.6.2 is available in Marketplace now!

@mpolicki mpolicki deleted the fix/several-errors branch July 1, 2021 16:34
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants