Skip to content

Commit

Permalink
jorb: fix checksum (open-telemetry#59)
Browse files Browse the repository at this point in the history
  • Loading branch information
Eugene Ma authored and GitHub Enterprise committed Aug 15, 2024
1 parent 8d6ab62 commit e06abfc
Showing 1 changed file with 8 additions and 3 deletions.
11 changes: 8 additions & 3 deletions _infra/ci/jobs/component_ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,17 +11,22 @@ dockerfile: ../Dockerfile

steps:
# start: environment setup #
- type: checksum
id: go-checksum
files:
- "{% run command='echo $COMPONENT_PATH/go.sum' %}"

- type: restore_cache
label: Restore cache
cache_key: go-image-{% image_id %}-go-sum-{% checksum files=[go.sum] %}
cache_key: go-image-{% image_id %}-go-sum-{{ go-checksum }}

- type: run
label: make moddownload
command: |
set -ex
sudo mkdir -p "$GOPATH"
sudo chmod -R ugo+rwX "$GOPATH"
cd $COMPONENT_PATH
make moddownload
Expand All @@ -31,7 +36,7 @@ steps:

- type: save_cache
label: Save cache
cache_key: go-image-{% image_id %}-go-sum-{% checksum files=[go.sum] %}
cache_key: go-image-{% image_id %}-go-sum-{{ go-checksum }}
paths:
- /go
# end: environment setup #
Expand Down

0 comments on commit e06abfc

Please sign in to comment.