Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
24 changes: 23 additions & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,24 @@
## [Unreleased]


## [v306] - 2025-05-08

- JRuby 9.4.12.0, 9.4.12.1, 10.0.0.0, and 10.0.0.1 is now available


## [v305] - 2025-04-28

- Fix `cp --update=none` warning `heroku-22` (https://github.com/heroku/heroku-buildpack-ruby/pull/1588)

## [v304] - 2025-04-28

- Fix `cp --update=none` on `heroku-20` (https://github.com/heroku/heroku-buildpack-ruby/pull/1586)

## [v303] - 2025-04-25

- Ruby 3.5.0-preview1 is now available
- Fix warning message about `cp -n` (https://github.com/heroku/heroku-buildpack-ruby/pull/1583)

## [v302] - 2025-04-16

- Ruby 3.3.8 is now available
Expand Down Expand Up @@ -1675,7 +1693,11 @@ Bugfixes:
* Change gem detection to use lockfile parser
* use `$RACK_ENV` when thin is detected for rack apps

[unreleased]: https://github.com/heroku/heroku-buildpack-ruby/compare/v302...main
[unreleased]: https://github.com/heroku/heroku-buildpack-ruby/compare/v306...main
[v306]: https://github.com/heroku/heroku-buildpack-ruby/compare/v305...v306
[v305]: https://github.com/heroku/heroku-buildpack-ruby/compare/v304...v305
[v304]: https://github.com/heroku/heroku-buildpack-ruby/compare/v303...v304
[v303]: https://github.com/heroku/heroku-buildpack-ruby/compare/v302...v303
[v302]: https://github.com/heroku/heroku-buildpack-ruby/compare/v301...v302
[v301]: https://github.com/heroku/heroku-buildpack-ruby/compare/v300...v301
[v300]: https://github.com/heroku/heroku-buildpack-ruby/compare/v299...v300
Expand Down
12 changes: 10 additions & 2 deletions lib/language_pack/cache.rb
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,13 @@ def load_without_overwrite(path, dest=nil)
return unless @cache_base

dest ||= path
copy (@cache_base + path), dest, '-a -n'

case ENV["STACK"]
when "heroku-20", "heroku-22", "scalingo-20", "scalingo-22"
copy (@cache_base + path), dest, "-a -n"
else
copy (@cache_base + path), dest, "-a --update=none"
end
end

# copy cache contents
Expand All @@ -70,7 +76,9 @@ def copy(from, to, options='-a')
return false unless File.exist?(from)
return true if File.expand_path(from) == File.expand_path(to) # see story 80029582
FileUtils.mkdir_p File.dirname(to)
system("cp #{options} #{from}/. #{to}")
command = "cp #{options} #{from}/. #{to}"
system(command)
raise "Command failed `#{command}`" unless $?
end

# copy contents between to places in the cache
Expand Down
2 changes: 1 addition & 1 deletion lib/language_pack/version.rb
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,6 @@

module LanguagePack
class LanguagePack::Base
BUILDPACK_VERSION = "v302"
BUILDPACK_VERSION = "v306"
end
end