Skip to content

Commit f701e53

Browse files
authored
Merge pull request cds-hooks#428 from oilers/patch-1
Actually capture the sha256sum instead.
2 parents 9ac2872 + 7741676 commit f701e53

File tree

1 file changed

+2
-2
lines changed
  • content/docs/buildpack-author-guide/create-buildpack

1 file changed

+2
-2
lines changed

content/docs/buildpack-author-guide/create-buildpack/caching.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -153,7 +153,7 @@ Note that there may be times when you would want to clean the cached layer from
153153
```bash
154154
# Compares previous Gemfile.lock checksum to the current Gemfile.lock
155155
bundlerlayer="$layersdir/bundler"
156-
local_bundler_checksum=$((sha256sum Gemfile.lock >/dev/null 2>&1 || echo 'DOES_NOT_EXIST') | cut -d ' ' -f 1)
156+
local_bundler_checksum=$((sha256sum Gemfile.lock || echo 'DOES_NOT_EXIST') | cut -d ' ' -f 1)
157157
remote_bundler_checksum=$(cat "$layersdir/bundler.toml" | yj -t | jq -r .metadata.checksum 2>/dev/null || echo 'DOES_NOT_EXIST')
158158
159159
if [[ -f Gemfile.lock && $local_bundler_checksum == $remote_bundler_checksum ]] ; then
@@ -214,7 +214,7 @@ gem install bundler --no-ri --no-rdoc
214214
# 7. INSTALL GEMS
215215
# Compares previous Gemfile.lock checksum to the current Gemfile.lock
216216
bundlerlayer="$layersdir/bundler"
217-
local_bundler_checksum=$((sha256sum Gemfile.lock >/dev/null 2>&1 || echo 'DOES_NOT_EXIST') | cut -d ' ' -f 1)
217+
local_bundler_checksum=$((sha256sum Gemfile.lock || echo 'DOES_NOT_EXIST') | cut -d ' ' -f 1)
218218
remote_bundler_checksum=$(cat "$layersdir/bundler.toml" | yj -t | jq -r .metadata.checksum 2>/dev/null || echo 'DOES_NOT_EXIST')
219219
220220
if [[ -f Gemfile.lock && $local_bundler_checksum == $remote_bundler_checksum ]] ; then

0 commit comments

Comments
 (0)