Skip to content

Commit 9786aa3

Browse files
committed
Fail When Unable to Cache Files
Previously, when a file could not be cached during offline packaging, a warning was printed, but the packaging continued without a necessary file. This is by design for an older requirement that would allow buildpacks to be created even in the face of networks that prevented access to certain hosts. In practice, this requirement hasn't been necessary (disabling components is the preferred way to deal with this) and it is more dangerous to allow a package build to complete without all of the necessary files. This change updates the warning message to be a hard failure of the packaging.
1 parent 46826a0 commit 9786aa3

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

rakelib/dependency_cache_task.rb

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -170,8 +170,8 @@ def get_from_cache(configuration, index_configuration, uris)
170170
pin_version(configuration, found_version.to_s) if ENV['PINNED'].to_b
171171

172172
if found_version.nil?
173-
rake_output_message "Unable to resolve version '#{configuration['version']}' for platform " \
174-
"'#{index_configuration[:platform]}'"
173+
raise "Unable to resolve version '#{configuration['version']}' for platform " \
174+
"'#{index_configuration[:platform]}'"
175175
end
176176

177177
uris << index[found_version.to_s] unless found_version.nil?

0 commit comments

Comments
 (0)