mirror of
				https://github.com/optim-enterprises-bv/vault.git
				synced 2025-11-03 20:17:59 +00:00 
			
		
		
		
	[VAULT-28666] Enable the --clobber flag on GitHub CLI release downloads in CI to avoid errors when retrying (#27852)
This commit is contained in:
		
							
								
								
									
										2
									
								
								.github/actions/set-up-buf/action.yml
									
									
									
									
										vendored
									
									
								
							
							
						
						
									
										2
									
								
								.github/actions/set-up-buf/action.yml
									
									
									
									
										vendored
									
									
								
							@@ -60,7 +60,7 @@ runs:
 | 
				
			|||||||
        fi
 | 
					        fi
 | 
				
			||||||
 | 
					
 | 
				
			||||||
        mkdir -p tmp
 | 
					        mkdir -p tmp
 | 
				
			||||||
        ./.github/scripts/retry-command.sh gh release download "$VERSION" -p "buf-${OS}-${ARCH}.tar.gz" -O tmp/buf.tgz -R bufbuild/buf
 | 
					        ./.github/scripts/retry-command.sh gh release download "$VERSION" --clobber -p "buf-${OS}-${ARCH}.tar.gz" -O tmp/buf.tgz -R bufbuild/buf
 | 
				
			||||||
        pushd tmp && tar -xvf buf.tgz && popd
 | 
					        pushd tmp && tar -xvf buf.tgz && popd
 | 
				
			||||||
        mv tmp/buf/bin/buf "$DESTINATION"
 | 
					        mv tmp/buf/bin/buf "$DESTINATION"
 | 
				
			||||||
        rm -rf tmp
 | 
					        rm -rf tmp
 | 
				
			||||||
 
 | 
				
			|||||||
							
								
								
									
										2
									
								
								.github/actions/set-up-gofumpt/action.yml
									
									
									
									
										vendored
									
									
								
							
							
						
						
									
										2
									
								
								.github/actions/set-up-gofumpt/action.yml
									
									
									
									
										vendored
									
									
								
							@@ -56,6 +56,6 @@ runs:
 | 
				
			|||||||
          export OS="darwin"
 | 
					          export OS="darwin"
 | 
				
			||||||
        fi
 | 
					        fi
 | 
				
			||||||
 | 
					
 | 
				
			||||||
        ./.github/scripts/retry-command.sh gh release download "$VERSION" -p "gofumpt_*_${OS}_${ARCH}" -O gofumpt -R mvdan/gofumpt
 | 
					        ./.github/scripts/retry-command.sh gh release download "$VERSION" --clobber -p "gofumpt_*_${OS}_${ARCH}" -O gofumpt -R mvdan/gofumpt
 | 
				
			||||||
        chmod +x gofumpt
 | 
					        chmod +x gofumpt
 | 
				
			||||||
        mv gofumpt "$DESTINATION"
 | 
					        mv gofumpt "$DESTINATION"
 | 
				
			||||||
 
 | 
				
			|||||||
							
								
								
									
										2
									
								
								.github/actions/set-up-gosimports/action.yml
									
									
									
									
										vendored
									
									
								
							
							
						
						
									
										2
									
								
								.github/actions/set-up-gosimports/action.yml
									
									
									
									
										vendored
									
									
								
							@@ -57,7 +57,7 @@ runs:
 | 
				
			|||||||
        fi
 | 
					        fi
 | 
				
			||||||
 | 
					
 | 
				
			||||||
        mkdir -p tmp
 | 
					        mkdir -p tmp
 | 
				
			||||||
        ./.github/scripts/retry-command.sh gh release download "$VERSION" -p "gosimports_*_${OS}_${ARCH}.tar.gz" -O tmp/gosimports.tgz -R rinchsan/gosimports
 | 
					        ./.github/scripts/retry-command.sh gh release download "$VERSION" --clobber -p "gosimports_*_${OS}_${ARCH}.tar.gz" -O tmp/gosimports.tgz -R rinchsan/gosimports
 | 
				
			||||||
        pushd tmp && tar -xvf gosimports.tgz && popd
 | 
					        pushd tmp && tar -xvf gosimports.tgz && popd
 | 
				
			||||||
        mv tmp/gosimports "$DESTINATION"
 | 
					        mv tmp/gosimports "$DESTINATION"
 | 
				
			||||||
        rm -rf tmp
 | 
					        rm -rf tmp
 | 
				
			||||||
 
 | 
				
			|||||||
							
								
								
									
										2
									
								
								.github/actions/set-up-gotestsum/action.yml
									
									
									
									
										vendored
									
									
								
							
							
						
						
									
										2
									
								
								.github/actions/set-up-gotestsum/action.yml
									
									
									
									
										vendored
									
									
								
							@@ -54,7 +54,7 @@ runs:
 | 
				
			|||||||
        fi
 | 
					        fi
 | 
				
			||||||
 | 
					
 | 
				
			||||||
        mkdir -p tmp
 | 
					        mkdir -p tmp
 | 
				
			||||||
        ./.github/scripts/retry-command.sh gh release download "$VERSION" -p "*${OS}_${ARCH}.tar.gz" -O tmp/gotestsum.tgz -R gotestyourself/gotestsum
 | 
					        ./.github/scripts/retry-command.sh gh release download "$VERSION" --clobber -p "*${OS}_${ARCH}.tar.gz" -O tmp/gotestsum.tgz -R gotestyourself/gotestsum
 | 
				
			||||||
        pushd tmp && tar -xvf gotestsum.tgz && popd
 | 
					        pushd tmp && tar -xvf gotestsum.tgz && popd
 | 
				
			||||||
        mv tmp/gotestsum "$DESTINATION"
 | 
					        mv tmp/gotestsum "$DESTINATION"
 | 
				
			||||||
        rm -rf tmp
 | 
					        rm -rf tmp
 | 
				
			||||||
 
 | 
				
			|||||||
							
								
								
									
										2
									
								
								.github/actions/set-up-misspell/action.yml
									
									
									
									
										vendored
									
									
								
							
							
						
						
									
										2
									
								
								.github/actions/set-up-misspell/action.yml
									
									
									
									
										vendored
									
									
								
							@@ -57,7 +57,7 @@ runs:
 | 
				
			|||||||
        fi
 | 
					        fi
 | 
				
			||||||
 | 
					
 | 
				
			||||||
        mkdir -p tmp
 | 
					        mkdir -p tmp
 | 
				
			||||||
        ./.github/scripts/retry-command.sh gh release download "$VERSION" -p "misspell_*_${OS}_${ARCH}.tar.gz" -O tmp/misspell.tgz -R golangci/misspell
 | 
					        ./.github/scripts/retry-command.sh gh release download "$VERSION" --clobber -p "misspell_*_${OS}_${ARCH}.tar.gz" -O tmp/misspell.tgz -R golangci/misspell
 | 
				
			||||||
        pushd tmp && tar -xvf misspell.tgz && popd
 | 
					        pushd tmp && tar -xvf misspell.tgz && popd
 | 
				
			||||||
        mv tmp/misspell_"$(echo "$VERSION" | tr -d v)"_${OS}_${ARCH}/misspell "$DESTINATION"
 | 
					        mv tmp/misspell_"$(echo "$VERSION" | tr -d v)"_${OS}_${ARCH}/misspell "$DESTINATION"
 | 
				
			||||||
        rm -rf tmp
 | 
					        rm -rf tmp
 | 
				
			||||||
 
 | 
				
			|||||||
@@ -57,7 +57,7 @@ runs:
 | 
				
			|||||||
        fi
 | 
					        fi
 | 
				
			||||||
 | 
					
 | 
				
			||||||
        mkdir -p tmp
 | 
					        mkdir -p tmp
 | 
				
			||||||
        ./.github/scripts/retry-command.sh gh release download "$VERSION" -p "staticcheck_${OS}_${ARCH}.tar.gz" -O tmp/staticcheck.tgz -R dominikh/go-tools
 | 
					        ./.github/scripts/retry-command.sh gh release download "$VERSION" --clobber -p "staticcheck_${OS}_${ARCH}.tar.gz" -O tmp/staticcheck.tgz -R dominikh/go-tools
 | 
				
			||||||
        pushd tmp && tar -xvf staticcheck.tgz && popd
 | 
					        pushd tmp && tar -xvf staticcheck.tgz && popd
 | 
				
			||||||
        mv tmp/staticcheck/staticcheck "$DESTINATION"
 | 
					        mv tmp/staticcheck/staticcheck "$DESTINATION"
 | 
				
			||||||
        rm -rf tmp
 | 
					        rm -rf tmp
 | 
				
			||||||
 
 | 
				
			|||||||
		Reference in New Issue
	
	Block a user