mirror of
				https://github.com/actions/setup-dotnet.git
				synced 2025-10-31 09:03:46 +00:00 
			
		
		
		
	v4 - Remove azureedge.net fallback logic and update install scripts (#572)
				
					
				
			* Remove logic for azureedge.net fallback in preparation for install script changes * remove extra spacing * Update README.md (#587) * upgrade cache from 3.2.4 to 4.0.0 (#586) * upgrade cache to 4.0.0 * license update * failure fix * e2e failure fix * Configure Dependabot settings (#585) * Create dependabot.yml * update latest install scripts * Bump actions/publish-immutable-action from 0.0.3 to 0.0.4 (#590) Bumps [actions/publish-immutable-action](https://github.com/actions/publish-immutable-action) from 0.0.3 to 0.0.4. - [Release notes](https://github.com/actions/publish-immutable-action/releases) - [Commits](https://github.com/actions/publish-immutable-action/compare/0.0.3...v0.0.4) --- updated-dependencies: - dependency-name: actions/publish-immutable-action dependency-type: direct:production update-type: version-update:semver-patch ... Signed-off-by: dependabot[bot] <support@github.com> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> * Bump @actions/http-client from 2.2.1 to 2.2.3 (#592) * Bump @actions/http-client from 2.2.1 to 2.2.3 Bumps [@actions/http-client](https://github.com/actions/toolkit/tree/HEAD/packages/http-client) from 2.2.1 to 2.2.3. - [Changelog](https://github.com/actions/toolkit/blob/main/packages/http-client/RELEASES.md) - [Commits](https://github.com/actions/toolkit/commits/HEAD/packages/http-client) --- updated-dependencies: - dependency-name: "@actions/http-client" dependency-type: direct:production update-type: version-update:semver-patch ... Signed-off-by: dependabot[bot] <support@github.com> * fix for the check failures --------- Signed-off-by: dependabot[bot] <support@github.com> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> Co-authored-by: Aparna Jyothi <aparnajyothi-y@github.com> * Bump undici from 5.28.4 to 5.28.5 (#596) * Bump undici from 5.28.4 to 5.28.5 Bumps [undici](https://github.com/nodejs/undici) from 5.28.4 to 5.28.5. - [Release notes](https://github.com/nodejs/undici/releases) - [Commits](https://github.com/nodejs/undici/compare/v5.28.4...v5.28.5) --- updated-dependencies: - dependency-name: undici dependency-type: indirect ... Signed-off-by: dependabot[bot] <support@github.com> * fix for the check failures * fix for licensed check failure --------- Signed-off-by: dependabot[bot] <support@github.com> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> Co-authored-by: Aparna Jyothi <aparnajyothi-y@github.com> * Remove old URLs from E2E tests workflow --------- Signed-off-by: dependabot[bot] <support@github.com> Co-authored-by: Ben Wells <benwells@github.com> Co-authored-by: aparnajyothi-y <147696841+aparnajyothi-y@users.noreply.github.com> Co-authored-by: HarithaVattikuti <73516759+HarithaVattikuti@users.noreply.github.com> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> Co-authored-by: Aparna Jyothi <aparnajyothi-y@github.com>
This commit is contained in:
		
							parent
							
								
									3951f0dfe7
								
							
						
					
					
						commit
						83c0c1a6c8
					
				
							
								
								
									
										4
									
								
								.github/workflows/e2e-tests.yml
									
									
									
									
										vendored
									
									
								
							
							
						
						
									
										4
									
								
								.github/workflows/e2e-tests.yml
									
									
									
									
										vendored
									
									
								
							| @ -719,7 +719,7 @@ jobs: | |||||||
|     runs-on: ubuntu-22.04 |     runs-on: ubuntu-22.04 | ||||||
|     env: |     env: | ||||||
|       https_proxy: http://no-such-proxy:3128 |       https_proxy: http://no-such-proxy:3128 | ||||||
|       no_proxy: github.com,dotnetcli.blob.core.windows.net,download.visualstudio.microsoft.com,api.nuget.org,dotnetcli.azureedge.net,builds.dotnet.microsoft.com,ci.dot.net |       no_proxy: github.com,download.visualstudio.microsoft.com,api.nuget.org,builds.dotnet.microsoft.com,ci.dot.net | ||||||
|     steps: |     steps: | ||||||
|       - name: Checkout |       - name: Checkout | ||||||
|         uses: actions/checkout@v4 |         uses: actions/checkout@v4 | ||||||
| @ -741,7 +741,7 @@ jobs: | |||||||
|     runs-on: ubuntu-latest |     runs-on: ubuntu-latest | ||||||
|     env: |     env: | ||||||
|       https_proxy: http://no-such-proxy:3128 |       https_proxy: http://no-such-proxy:3128 | ||||||
|       no_proxy: github.com,dotnetcli.blob.core.windows.net,download.visualstudio.microsoft.com,api.nuget.org,dotnetcli.azureedge.net,builds.dotnet.microsoft.com,ci.dot.net |       no_proxy: github.com,download.visualstudio.microsoft.com,api.nuget.org,builds.dotnet.microsoft.com,ci.dot.net | ||||||
|     steps: |     steps: | ||||||
|       - name: Checkout |       - name: Checkout | ||||||
|         uses: actions/checkout@v4 |         uses: actions/checkout@v4 | ||||||
|  | |||||||
							
								
								
									
										9
									
								
								dist/setup/index.js
									
									
									
									
										vendored
									
									
								
							
							
						
						
									
										9
									
								
								dist/setup/index.js
									
									
									
									
										vendored
									
									
								
							| @ -102230,13 +102230,7 @@ class DotnetVersionResolver { | |||||||
|                 allowRetries: true, |                 allowRetries: true, | ||||||
|                 maxRetries: 3 |                 maxRetries: 3 | ||||||
|             }); |             }); | ||||||
|             let response; |             const response = yield httpClient.getJson(DotnetVersionResolver.DotnetCoreIndexUrl); | ||||||
|             try { |  | ||||||
|                 response = yield httpClient.getJson(DotnetVersionResolver.DotnetCoreIndexUrl); |  | ||||||
|             } |  | ||||||
|             catch (error) { |  | ||||||
|                 response = yield httpClient.getJson(DotnetVersionResolver.DotnetCoreIndexFallbackUrl); |  | ||||||
|             } |  | ||||||
|             const result = response.result || {}; |             const result = response.result || {}; | ||||||
|             const releasesInfo = result['releases-index']; |             const releasesInfo = result['releases-index']; | ||||||
|             const releaseInfo = releasesInfo.find(info => { |             const releaseInfo = releasesInfo.find(info => { | ||||||
| @ -102252,7 +102246,6 @@ class DotnetVersionResolver { | |||||||
| } | } | ||||||
| exports.DotnetVersionResolver = DotnetVersionResolver; | exports.DotnetVersionResolver = DotnetVersionResolver; | ||||||
| DotnetVersionResolver.DotnetCoreIndexUrl = 'https://builds.dotnet.microsoft.com/dotnet/release-metadata/releases-index.json'; | DotnetVersionResolver.DotnetCoreIndexUrl = 'https://builds.dotnet.microsoft.com/dotnet/release-metadata/releases-index.json'; | ||||||
| DotnetVersionResolver.DotnetCoreIndexFallbackUrl = 'https://dotnetcli.azureedge.net/dotnet/release-metadata/releases-index.json'; |  | ||||||
| class DotnetInstallScript { | class DotnetInstallScript { | ||||||
|     constructor() { |     constructor() { | ||||||
|         this.scriptName = utils_1.IS_WINDOWS ? 'install-dotnet.ps1' : 'install-dotnet.sh'; |         this.scriptName = utils_1.IS_WINDOWS ? 'install-dotnet.ps1' : 'install-dotnet.sh'; | ||||||
|  | |||||||
| @ -102,16 +102,9 @@ export class DotnetVersionResolver { | |||||||
|       maxRetries: 3 |       maxRetries: 3 | ||||||
|     }); |     }); | ||||||
| 
 | 
 | ||||||
|     let response; |     const response = await httpClient.getJson<any>( | ||||||
|     try { |       DotnetVersionResolver.DotnetCoreIndexUrl | ||||||
|       response = await httpClient.getJson<any>( |     ); | ||||||
|         DotnetVersionResolver.DotnetCoreIndexUrl |  | ||||||
|       ); |  | ||||||
|     } catch (error) { |  | ||||||
|       response = await httpClient.getJson<any>( |  | ||||||
|         DotnetVersionResolver.DotnetCoreIndexFallbackUrl |  | ||||||
|       ); |  | ||||||
|     } |  | ||||||
| 
 | 
 | ||||||
|     const result = response.result || {}; |     const result = response.result || {}; | ||||||
|     const releasesInfo: any[] = result['releases-index']; |     const releasesInfo: any[] = result['releases-index']; | ||||||
| @ -132,8 +125,6 @@ export class DotnetVersionResolver { | |||||||
| 
 | 
 | ||||||
|   static DotnetCoreIndexUrl = |   static DotnetCoreIndexUrl = | ||||||
|     'https://builds.dotnet.microsoft.com/dotnet/release-metadata/releases-index.json'; |     'https://builds.dotnet.microsoft.com/dotnet/release-metadata/releases-index.json'; | ||||||
|   static DotnetCoreIndexFallbackUrl = |  | ||||||
|     'https://dotnetcli.azureedge.net/dotnet/release-metadata/releases-index.json'; |  | ||||||
| } | } | ||||||
| 
 | 
 | ||||||
| export class DotnetInstallScript { | export class DotnetInstallScript { | ||||||
|  | |||||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user