Skip to content

Upgrade vendorpull to 89f348a97842e05aeab45d338d41fb02031fad62 - #112

Merged
jviotti merged 1 commit into
mainfrom
vendorpull-new
Aug 3, 2026
Merged

Upgrade vendorpull to 89f348a97842e05aeab45d338d41fb02031fad62#112
jviotti merged 1 commit into
mainfrom
vendorpull-new

Conversation

@jviotti

@jviotti jviotti commented Aug 3, 2026

Copy link
Copy Markdown
Member

Signed-off-by: Juan Cruz Viotti jv@jviotti.com

Review in cubic

Signed-off-by: Juan Cruz Viotti <jv@jviotti.com>
@jviotti
jviotti merged commit 9a289cb into main Aug 3, 2026
3 checks passed
@jviotti
jviotti deleted the vendorpull-new branch August 3, 2026 13:44
@augmentcode

augmentcode Bot commented Aug 3, 2026

Copy link
Copy Markdown
🤖 Augment PR Summary

Summary: Upgrades the vendored vendorpull tooling to upstream commit 89f348a….

Changes:

  • Adds support for "file dependencies" identified by a 64‑char SHA‑256, including download + checksum verification in vendor/vendorpull/pull.
  • Extends vendor/vendorpull/upgrade to compute a new SHA‑256 for file dependencies and update the matching entry in DEPENDENCIES.
  • Adjusts mktemp templates and fixes upgrade to read from the resolved $DEPENDENCIES path.

Technical note: For file dependencies, the “version” field now represents the SHA‑256 of the downloaded artifact (not a git ref).

🤖 Was this summary useful? React with 👍 or 👎

@augmentcode augmentcode Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Review completed. 3 suggestions posted.

Fix All in Augment

Comment augment review to trigger a new review at any time.

Comment thread vendor/vendorpull/pull
checksum() {
if command -v sha256sum > /dev/null
then
sha256sum "$1" | cut -d ' ' -f 1

@augmentcode augmentcode Bot Aug 3, 2026

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

vendor/vendorpull/pull:29 — checksum() uses pipelines (e.g., sha256sum ... | cut ...), so an upstream failure can be masked and return an empty checksum. In upgrade, that would allow $NEW_VERSION to become empty and still update DEPENDENCIES.

Severity: medium

Other Locations
  • vendor/vendorpull/pull:32
  • vendor/vendorpull/pull:35
  • vendor/vendorpull/upgrade:27
  • vendor/vendorpull/upgrade:30
  • vendor/vendorpull/upgrade:33

Fix This in Augment

🤖 Was this useful? React with 👍 or 👎, or 🚀 if it prevented an incident/outage.

Comment thread vendor/vendorpull/pull

# $1 = version
is_file_dependency() {
echo "$1" | grep -Eq '^[a-f0-9]{64}$'

@augmentcode augmentcode Bot Aug 3, 2026

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

vendor/vendorpull/pull:22 — is_file_dependency() only matches lowercase hex ([a-f0-9]{64}), so an uppercase SHA-256 string in DEPENDENCIES would be treated as a git dependency and likely fail the intended download flow.

Severity: low

Other Locations
  • vendor/vendorpull/upgrade:20

Fix This in Augment

🤖 Was this useful? React with 👍 or 👎, or 🚀 if it prevented an incident/outage.

Comment thread vendor/vendorpull/pull
# Downloading
log "Downloading $2 into $4/$1"
mkdir -p "$(dirname "$4/$1")"
curl --fail --silent --show-error --location --output "$4/$1" "$2"

@augmentcode augmentcode Bot Aug 3, 2026

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

vendor/vendorpull/pull:109 — Downloading via curl --output will create the vendored file with local default permissions (umask), which may differ from any previously-vendored mode. If a file dependency is expected to be executable, this could break consumers.

Severity: medium

Other Locations
  • vendor/vendorpull/upgrade:73

Fix This in Augment

🤖 Was this useful? React with 👍 or 👎, or 🚀 if it prevented an incident/outage.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant