-
Notifications
You must be signed in to change notification settings - Fork 705
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
JsonException
with Release 1.1.0
when using VSS_NUGET_EXTERNAL_FEED_ENDPOINTS
#484
Comments
JsonException
with Release 1.10.0
when using VSS_NUGET_EXTERNAL_FEED_ENDPOINTS
JsonException
with Release 1.1.0
when using VSS_NUGET_EXTERNAL_FEED_ENDPOINTS
Thank you for the tip, the workaround solved the issue. |
We were affected by this too: we pass the value by means of a variable group so we had to change only the single variable. |
…ange We are affected by a change in the JSON libraries of the credential provider - microsoft/artifacts-credprovider#484 Related work items: #2156510
Apologies for the breaking change. A new 1.1.1 release to revert has been created and set as latest. We would like to use System.Text.Json in future versions and env variables with single quotes will need to be updated. |
Thank you for the quick reaction, the grace period is appreciated. |
Hello,
Starting with
1.1.0
, the credential provider is now usingSystem.Text.Json
instead ofNewtonSoft.Json
.But this can lead to breaking changes, as in the example below:
We were using docker images like this:
And using them in our AZDO build pipeline (see how we are using single quotes for
endpointCredentials
):As soon as the
1.1.0
was published we hit:Indeed single quotes around string values are not supported by design in
System.Text.Json
.Reference: https://learn.microsoft.com/en-us/dotnet/standard/serialization/system-text-json/migrate-from-newtonsoft?pivots=dotnet-9-0
Of course we can fix this by using double-quotes going forward, but this change will probably break several users.
As an immediate workaround, before analyzing the issue we used:
in our docker files to rollback to
1.0.9
.Regards
Seb
The text was updated successfully, but these errors were encountered: