This repository was archived by the owner on Nov 15, 2026. It is now read-only.
Repository navigation
ci(dependabot): ignore the frostyard git crate frostyard-problems - #60
Merged
Merged
Conversation
Dependabot's cargo update job for web/src-tauri fails on frostyard-problems, a git dependency on a tag of frostyard/std: the job fetches std's older tags, v0.3.0 holds no Cargo.toml, and the whole job stops with dependency_file_not_resolvable. The crate is bumped by hand, so the cargo entry ignores it, as frostmail's does. TestDependabotLeavesInternalGitCratesAlone requires an ignore entry for each frostyard git crate of each Cargo.toml.
The line scan missed quoted keys, literal strings, trailing comments and dotted keys, named a renamed dependency by its alias instead of its package, and read inline tables outside the dependency sections. A small reader of the TOML forms Cargo.toml dependencies take replaces it: only the dependency sections (with their target and workspace forms), the package name of a renamed dependency, and an error for a multi-line string or inline table, so no dependency is missed in silence.
A Cargo.toml reader must know every TOML form and section a dependency can take, and it still merged same-named dependencies of 2 sections, skipped root dotted keys, and took the owner from a URL substring. Cargo.lock names each package once, by its package name, with its source as a URL in 1 fixed form: the guard now reads it, and the URL's host and first path segment decide the owner.
bketelsen
approved these changes
Nov 6, 2026
2 tasks done
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Dependabot's cargo update job for
/web/src-tauri, which #55 added (core baseline row B13), fails on every run.frostyard-problemsis a git dependency on a tag of frostyard/std; the job fetches std's older tags,v0.3.0holds noCargo.toml, and the whole job stops withdependency_file_not_resolvable(runs of the merge commit519e22c: "could not findCargo.tomlin … std … 5da37dd"). So no cargo update reaches the repository at all.The crate is bumped by hand (with frostyard/std's tags), so the cargo entry now ignores it, as frostyard/frostmail's
dependabot.ymldoes. The other cargo crates stay under Dependabot..github/dependabot.yml: anignoreentry forfrostyard-problemsin the cargo entry, and a header comment with the reason.TestDependabotLeavesInternalGitCratesAlonereads theCargo.lockbeside eachCargo.tomland requires a fullignoreentry (noversionsorupdate-types) in the cargo entry of that directory for each package whose source is a git repository of the frostyard organization on GitHub. The lock file, notCargo.toml, is read: cargo writes it in 1 fixed form and names each git package once by its package name, whatever TOML form, section or renameCargo.tomluses. The owner comes from the parsed URL's host and first path segment, not a substring. A missing lock file or a record it cannot read fails the test.TestInternalGitCrates(10 cases, 4 refusals) andTestCargoIgnorescheck the reader and what counts as a full ignore. No TOML module joinsgo.mod.AGENTS.md(Repository baseline, B13) states the rule;.memory/corrections.jsonlgets 3 lines (the failure and the review's 2 rounds of findings).No product code changes:
git diff origin/main --stat -- '*.go' go.mod go.sumlists onlyinternal/workflowcheck/baseline_test.go.Risk tier
Risk tier: 3, because
internal/workflowcheck/**is in.github/risk-paths.json(governance: the tests that hold the workflows and the baseline files). The change adds tests and test helpers there, and changes no existing check:TestDependabotCoversManifestsonly moves its file reading intoreadDependabot..github/dependabot.yml,AGENTS.mdand.memory/corrections.jsonlare not on the list.Verification
make check: exit 0 (golangci-lint0 issues.)go test -count=1 -v -run 'TestDependabot|TestInternalGitCrates|TestCargoIgnores' ./internal/workflowcheck/: pass; logs3 manifests, 4 Dependabot entriesand1 frostyard git crates checkedignoreentry removed from.github/dependabot.yml,TestDependabotLeavesInternalGitCratesAlonefails:web/src-tauri/Cargo.toml: the frostyard git crate frostyard-problems has no ignore entry in the cargo entry for /web/src-taurigit worktree remove): the regexp scanner of0f12839with the tests of95b38d1fails 7 positive cases and 3 refusals; the Cargo.toml reader of95b38d1with the tests of1def37ffails the lock cases and the 4 refusals, andTestDependabotLeavesInternalGitCratesAlonefails withno frostyard git crate foundcheck-corrections.mjsatorigin/mainpasses (nsl)Cross-review
github-copilot/claude-opus-5.5). Reviewer:openai/gpt-6.1-sol. Base519e22c.0f12839: Not ready, 3 blocking points in the Cargo.toml scan (quoted keys, literal strings and comments missed; a renamed dependency named by its alias; inline tables read outside dependency sections). Fixed in95b38d1with a TOML-subset reader and its cases.95b38d1: Not ready, 3 blocking points (same-named dependencies of 2 sections merged; root dotted keys skipped; the owner matched as a URL substring). Fixed in1def37f: the guard readsCargo.lockand parses the source URL.1def37f: Ready, Blocking: none.