Repository navigation
chore(deps): bump fast-uri from 3.1.5 to 3.1.7 in /packages/vscode in the npm_and_yarn group across 1 directory - #2243
Conversation
Bumps the npm_and_yarn group with 1 update in the /packages/vscode directory: [fast-uri](https://github.com/fastify/fast-uri). Updates `fast-uri` from 3.1.5 to 3.1.7 - [Release notes](https://github.com/fastify/fast-uri/releases) - [Commits](fastify/fast-uri@v3.1.5...v3.1.7) --- updated-dependencies: - dependency-name: fast-uri dependency-version: 3.1.7 dependency-type: indirect dependency-group: npm_and_yarn ... Signed-off-by: dependabot[bot] <[email protected]>
✅ Compatibility Test Results
What's tested
Full results available in workflow artifacts |
`buildNpmPackage` pins the dependency tree by hash, so any change to `packages/vscode/package-lock.json` invalidates it and the Nix build fails with a fixed-output mismatch. Dependabot cannot update the hash -- it does not know the flake exists -- so every npm bump in that package lands red until this is refreshed by hand. specified sha256-RAbjPgXMQViIpmGw+IXsBAuTEFdAmQJBFnSBW1zYads= got sha256-Oc3yvMFep3AogJpFa5Ji4zIMXCIF/PGLJc7AM98mr7w= Computed locally with `prefetch-npm-deps` rather than copied from the CI log, and they agree. `nix build .#vscode-extension` then succeeds, which the hash alone would not have proven.
|
Fixed in 18fe28f — the failure was the
I computed it locally with |
Codecov Report✅ All modified and coverable lines are covered by tests. 📢 Thoughts on this report? Let us know! |
* ci(nix): refresh the vscode npmDepsHash automatically `flake.nix` pins `npmDepsHash` over packages/vscode/package-lock.json, because buildNpmPackage hashes the vendored dependency tree. Dependabot updates the lockfile and has no way to know a Nix expression hashes it, so every npm bump to that package landed red on a fixed-output mismatch and sat there until somebody recomputed the hash by hand. That is #2109, #2202 and #2243, and both currently open dependabot PRs (#2269, #2272). `build` requires that job, so none of them could ever merge unattended. There was no tooling for it: nothing in .github, scripts or the justfile mentioned prefetch-npm-deps. The repair was folklore. Adds a workflow that recomputes the hash on any pull request touching the lockfile and commits it to the branch. It is deliberately separate from the `VS Code Extension (Nix)` job: that job verifies, this one repairs, and a verifier that silently rewrites what it is checking is worse than one that fails. It cannot push to a fork, so it always writes the correct value to the job summary as well. A contributor whose PR it cannot fix still gets the exact line to change instead of a bare Nix hash mismatch. The push is self-terminating: it only commits when the computed hash differs, so the run it triggers finds a match and stops. Also adds `just nix-refresh-vscode-hash` for the same repair locally, and documents both in CONTRIBUTING. Verified rather than assumed: the recipe reports "already correct" on main, and when flake.nix is corrupted it repairs the value and restores the file byte-identically. Co-Authored-By: Claude Opus 5 (1M context) <[email protected]> Claude-Session: https://claude.ai/code/session_012nNGPA44Dt32NyxWem26xr * fix(nix): keep prefetch stderr, and drop the GNU-only sed Copilot review on #2284, both valid. Discarding prefetch-npm-deps stderr meant any real failure — network, auth, a lockfile it cannot parse — surfaced only as "produced no hash", which says nothing about why. That is the same silent-failure shape this whole change exists to remove, one level up. stderr is captured and printed when no hash comes back. The justfile used `sed -i` with no suffix, which is GNU-only: BSD and macOS sed take a mandatory argument there, and no single spelling works on both. Replaced with write-to-temp and move. The workflow's own sed runs on ubuntu-latest so it was never affected, but the recipe is for contributors, some of whom are on macOS. Re-verified both directions after the change: the recipe repairs a corrupted hash and restores flake.nix byte-identically, and reports "already correct" when it is. Co-Authored-By: Claude Opus 5 (1M context) <[email protected]> Claude-Session: https://claude.ai/code/session_012nNGPA44Dt32NyxWem26xr * fix(ci): report the npmDepsHash instead of pushing it CodeQL on #2284: unsafe checkout of untrusted code in a non-privileged context. The finding is correct. The job held `contents: write`, checked out pull-request head code, and ran a tool over a lockfile the pull request controls. That is the shape of the problem, regardless of whether this particular tool is exploitable. Automating the commit safely needs the two-stage `workflow_run` split, where the privileged half never checks out untrusted code. That is a lot of machinery for a one-line repair, so the job now reports instead: it fails with the exact value to set, in both the error annotation and the job summary, and `just nix-refresh-vscode-hash` applies it in one command. That keeps what actually made this recur — nobody knew the command, and nothing in the repo mentioned prefetch-npm-deps — while dropping the write permission and the head-ref checkout entirely. The job now needs no permissions beyond the read-only default and takes the ordinary merge-commit checkout. Worth revisiting with the workflow_run split if reporting proves to be a nuisance rather than a fix. Co-Authored-By: Claude Opus 5 (1M context) <[email protected]> Claude-Session: https://claude.ai/code/session_012nNGPA44Dt32NyxWem26xr --------- Co-authored-by: Claude Opus 5 (1M context) <[email protected]>
Bumps the npm_and_yarn group with 1 update in the /packages/vscode directory: fast-uri.
Updates
fast-urifrom 3.1.5 to 3.1.7Release notes
Sourced from fast-uri's releases.
Commits
412e40aBumped v3.1.79f4c943fix: backport port and IP-literal validation to v3.x (#216)1eb3ce4fix: treat unterminated bracket hosts as reg-names again (#214)6f970b2Bumped v3.1.6d941579fix: never run IDN canonicalization on bracketed IP literalsc0f0279test: adapt decoded-scheme handler assertion to 3.x (no mailto scheme)37f3417Merge commit from fork607bfbeMerge commit from forkae92a4cMerge commit from fork444ecdaMerge commit from forkDependabot will resolve any conflicts with this PR as long as you don't alter it yourself. You can also trigger a rebase manually by commenting
@dependabot rebase.Dependabot commands and options
You can trigger Dependabot actions by commenting on this PR:
@dependabot rebasewill rebase this PR@dependabot recreatewill recreate this PR, overwriting any edits that have been made to it@dependabot show <dependency name> ignore conditionswill show all of the ignore conditions of the specified dependency@dependabot ignore <dependency name> major versionwill close this group update PR and stop Dependabot creating any more for the specific dependency's major version (unless you unignore this specific dependency's major version or upgrade to it yourself)@dependabot ignore <dependency name> minor versionwill close this group update PR and stop Dependabot creating any more for the specific dependency's minor version (unless you unignore this specific dependency's minor version or upgrade to it yourself)@dependabot ignore <dependency name>will close this group update PR and stop Dependabot creating any more for the specific dependency (unless you unignore this specific dependency or upgrade to it yourself)@dependabot unignore <dependency name>will remove all of the ignore conditions of the specified dependency@dependabot unignore <dependency name> <ignore condition>will remove the ignore condition of the specified dependency and ignore conditionsYou can disable automated security fix PRs for this repo from the Security Alerts page.