Skip to content

Commit d77d3ff

Browse files
committed
Use a SHA256 checksum in the Homebrew formula
Closes gh-5885
1 parent 72c2454 commit d77d3ff

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

spring-boot-cli/pom.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -312,7 +312,7 @@
312312
<stringutil string="${version-type}" property="repo">
313313
<lowercase />
314314
</stringutil>
315-
<checksum algorithm="sha-1" file="${project.build.directory}/spring-boot-cli-${project.version}-bin.tar.gz" property="checksum" />
315+
<checksum algorithm="sha-256" file="${project.build.directory}/spring-boot-cli-${project.version}-bin.tar.gz" property="checksum" />
316316
<echo message="Customizing homebrew for ${project.version} with checksum ${checksum} in ${repo} repo" />
317317
<copy file="${basedir}/src/main/homebrew/springboot.rb" tofile="${project.build.directory}/springboot.rb" overwrite="true">
318318
<filterchain>

spring-boot-cli/src/main/homebrew/springboot.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ class Springboot < Formula
44
homepage 'http://projects.spring.io/spring-boot/'
55
url 'https://repo.spring.io/${repo}/org/springframework/boot/spring-boot-cli/${project.version}/spring-boot-cli-${project.version}-bin.tar.gz'
66
version '${project.version}'
7-
sha1 '${checksum}'
7+
sha256 '${checksum}'
88
head 'https://github.com/spring-projects/spring-boot.git'
99

1010
if build.head?

0 commit comments

Comments
 (0)