Fix curl not following redirects when downloading product version files#671
Uh oh!
There was an error while loading. Please reload this page.
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
When downloading product version files from a custom feed that returns redirects, curl doesn't follow them because the
-Lflag is missing. This causesget_specific_product_versionto return an empty string, and the script erroneously succeeds by finding an empty version directory.Changes
-Lflag to curl inget_specific_product_versionfunction to follow redirectsThis aligns with other curl usages in the script (
downloadcurl,get_http_header_curl) which already use-L.Warning
Firewall rules blocked me from connecting to one or more addresses (expand for details)
I tried to connect to the following addresses, but was blocked by firewall rules:
1s1vsblobprodcus386.vsblob.vsassets.io/usr/bin/dotnet dotnet restore(dns block)4vyvsblobprodcus361.vsblob.vsassets.io/usr/bin/dotnet dotnet restore(dns block)c50vsblobprodcus330.vsblob.vsassets.io/usr/bin/dotnet dotnet restore(dns block)e7bvsblobprodcus348.vsblob.vsassets.io/usr/bin/dotnet dotnet restore(dns block)ofvvsblobprodcus315.vsblob.vsassets.io/usr/bin/dotnet dotnet restore(dns block)p2ovsblobprodcus312.vsblob.vsassets.io/usr/bin/dotnet dotnet restore(dns block)sc4vsblobprodcus331.vsblob.vsassets.io/usr/bin/dotnet dotnet restore(dns block)u3hvsblobprodcus371.vsblob.vsassets.io/usr/bin/dotnet dotnet restore(dns block)If you need me to access, download, or install something from one of these locations, you can either:
Original prompt
✨ Let Copilot coding agent set things up for you — coding agent works faster and does higher quality work when set up for your repo.