Skip to content

Commit

Permalink
fix: write artifact basename to configuration in update dependencies (#…
Browse files Browse the repository at this point in the history
…347)

Issue #, if available:
Found in #346 

*Description of changes:*
This change updates update-rootfs.sh and update-deps.sh to write the
artifact basename to the ARTIFACT configuration variable.

*Testing done:*
Locally tested in bash:
```
aarch64_deps="aarch64/lima-and-qemu.macos-aarch64.1719307443.tar.gz"
echo "AARCH64_ARTIFACT=$(basename "${aarch64_deps}")"
```

- [x] I've reviewed the guidance in CONTRIBUTING.md

#### License Acceptance

By submitting this pull request, I confirm that my contribution is made
under the terms of the Apache 2.0 license.

Signed-off-by: Austin Vazquez <[email protected]>
  • Loading branch information
austinvazquez authored Jun 26, 2024
1 parent 19274d9 commit 1e33e28
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions bin/update-deps.sh
Original file line number Diff line number Diff line change
Expand Up @@ -50,10 +50,10 @@ truncate -s 0 "${BUNDLES_FILE}"
echo "ARTIFACT_BASE_URL=${DEPENDENCY_CLOUDFRONT_URL}"
echo ""
echo "AARCH64_ARTIFACT_PATHING=${AARCH64}"
echo "AARCH64_ARTIFACT=${aarch64_deps}"
echo "AARCH64_ARTIFACT=$(basename "${aarch64_deps}")"
echo "AARCH64_512_DIGEST=${aarch64_deps_shasum}"
echo ""
echo "X86_64_ARTIFACT_PATHING=${X86_64}"
echo "X86_64_ARTIFACT=${amd64_deps}"
echo "X86_64_ARTIFACT=$(basename "${amd64_deps}")"
echo "X86_64_512_DIGEST=${amd64_deps_shasum}"
} >> "${BUNDLES_FILE}"
2 changes: 1 addition & 1 deletion bin/update-rootfs.sh
Original file line number Diff line number Diff line change
Expand Up @@ -45,6 +45,6 @@ truncate -s 0 "${ROOTFS_FILE}"
echo "ARTIFACT_BASE_URL=${DEPENDENCY_CLOUDFRONT_URL}"
echo ""
echo "X86_64_ARTIFACT_PATHING=${PLATFORM}/${X86_64}"
echo "X86_64_ARTIFACT=${amd64_deps}"
echo "X86_64_ARTIFACT=$(basename "${amd64_deps}")"
echo "X86_64_512_DIGEST=${amd64_deps_shasum}"
} >> "${ROOTFS_FILE}"

0 comments on commit 1e33e28

Please sign in to comment.