Skip to content

Commit c09844c

Browse files
committed
dev: allow us to provide checksums when upstream does not
See tailwindlabs/tailwindcss#14072 for context
1 parent 7c3ebd1 commit c09844c

File tree

1 file changed

+6
-2
lines changed

1 file changed

+6
-2
lines changed

rakelib/package.rake

+6-2
Original file line numberDiff line numberDiff line change
@@ -115,8 +115,12 @@ end
115115

116116
desc "Validate checksums for tailwindcss binaries"
117117
task "check" => exepaths do
118-
sha_filename = "sha256sums.txt"
119-
sha_url = tailwindcss_download_url(sha_filename)
118+
sha_filename = File.absolute_path("../package/tailwindcss-#{Tailwindcss::Upstream::VERSION}-checksums.txt", __dir__)
119+
sha_url = if File.exist?(sha_filename)
120+
sha_filename
121+
else
122+
sha_url = tailwindcss_download_url("sha256sums.txt")
123+
end
120124
gemspec = TAILWINDCSS_RAILS_GEMSPEC
121125

122126
checksums = URI.open(sha_url).each_line.map do |line|

0 commit comments

Comments
 (0)