Skip to content

Commit abcba0a

Browse files
committed
Merge tag 'v306' into deps/upstream_v306
2 parents 322278d + 58a323f commit abcba0a

File tree

3 files changed

+34
-4
lines changed

3 files changed

+34
-4
lines changed

CHANGELOG.md

Lines changed: 23 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,24 @@
33
## [Unreleased]
44

55

6+
## [v306] - 2025-05-08
7+
8+
- JRuby 9.4.12.0, 9.4.12.1, 10.0.0.0, and 10.0.0.1 is now available
9+
10+
11+
## [v305] - 2025-04-28
12+
13+
- Fix `cp --update=none` warning `heroku-22` (https://github.com/heroku/heroku-buildpack-ruby/pull/1588)
14+
15+
## [v304] - 2025-04-28
16+
17+
- Fix `cp --update=none` on `heroku-20` (https://github.com/heroku/heroku-buildpack-ruby/pull/1586)
18+
19+
## [v303] - 2025-04-25
20+
21+
- Ruby 3.5.0-preview1 is now available
22+
- Fix warning message about `cp -n` (https://github.com/heroku/heroku-buildpack-ruby/pull/1583)
23+
624
## [v302] - 2025-04-16
725

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

1678-
[unreleased]: https://github.com/heroku/heroku-buildpack-ruby/compare/v302...main
1696+
[unreleased]: https://github.com/heroku/heroku-buildpack-ruby/compare/v306...main
1697+
[v306]: https://github.com/heroku/heroku-buildpack-ruby/compare/v305...v306
1698+
[v305]: https://github.com/heroku/heroku-buildpack-ruby/compare/v304...v305
1699+
[v304]: https://github.com/heroku/heroku-buildpack-ruby/compare/v303...v304
1700+
[v303]: https://github.com/heroku/heroku-buildpack-ruby/compare/v302...v303
16791701
[v302]: https://github.com/heroku/heroku-buildpack-ruby/compare/v301...v302
16801702
[v301]: https://github.com/heroku/heroku-buildpack-ruby/compare/v300...v301
16811703
[v300]: https://github.com/heroku/heroku-buildpack-ruby/compare/v299...v300

lib/language_pack/cache.rb

Lines changed: 10 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -58,7 +58,13 @@ def load_without_overwrite(path, dest=nil)
5858
return unless @cache_base
5959

6060
dest ||= path
61-
copy (@cache_base + path), dest, '-a -n'
61+
62+
case ENV["STACK"]
63+
when "heroku-20", "heroku-22", "scalingo-20", "scalingo-22"
64+
copy (@cache_base + path), dest, "-a -n"
65+
else
66+
copy (@cache_base + path), dest, "-a --update=none"
67+
end
6268
end
6369

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

7684
# copy contents between to places in the cache

lib/language_pack/version.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,6 @@
22

33
module LanguagePack
44
class LanguagePack::Base
5-
BUILDPACK_VERSION = "v302"
5+
BUILDPACK_VERSION = "v306"
66
end
77
end

0 commit comments

Comments
 (0)