Skip to content

feat(cli): oa check reads go.sum - #506

Merged
M0Rf30 merged 1 commit into
openartifact:mainfrom
orcamedia:feat/lockfile-gosum
Nov 17, 2026
Merged

M0Rf30 merged 1 commit into
openartifact:mainfrom
orcamedia:feat/lockfile-gosum

Conversation

@orcamedia

Copy link
Copy Markdown
Contributor

oa check reads go.sum: every module version once, also the ones listed only as /go.mod (the proxy gates that file too); a line the go command would refuse makes the file invalid. No requirers and no test-only modules are recorded, so there is no REQUIRED BY column ("dependency_graph": false) and --no-dev is refused. --fetch requests the .info of each version (what a build fetches, and what the batch check reads since #498) and each module's version list once, so a missing release is not_found instead of unknown.

Checked against a go proxy to proxy.golang.org on a real go.sum: cold all unknown; after --fetch all five versions available, pseudo-versions included; a block rule holds a pseudo-version; an invented version is not_found.

🤖 Generated with Claude Code

pkg/lockfile reads go.sum: every module version once, also the ones it lists
only as "/go.mod" (the go command fetches that file through the proxy too,
and the proxy gates it like the zip). A line the go command would refuse
(not three fields, a path or version module.Check rejects) makes the file
invalid. go.sum records neither requirers nor test-only modules: the table
has no REQUIRED BY column, the JSON reports "dependency_graph": false, and
--no-dev is refused.

--fetch requests the ".info" of each version, escaped as the go command
does (module.EscapePath, EscapeVersion), which is what a build fetches and
what the batch check reads since openartifact#498; and the version list of each module,
once, so that a release the module does not have is not_found instead of
unknown. The lists are not counted as packages.

The fixture is a real go.sum (go mod tidy of a module with a pseudo-version
dependency) renamed to example.com/acme. Fuzz target; the --fetch path fuzz
target covers go too.

Checked against a go proxy to proxy.golang.org on the real go.sum: cold all
unknown; after --fetch all five module versions available, the two
pseudo-versions included; --no-dev refused; a block rule on golang.org/x/exp
holds its pseudo-version; an invented rsc.io/quote v1.9.9 is not_found.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
@M0Rf30
M0Rf30 merged commit 73f6d81 into openartifact:main Nov 17, 2026
23 checks passed
M0Rf30 added a commit that referenced this pull request Nov 23, 2026
…se notes

- RepoAIAnalysisTab: a status filter restarts at offset 0, and an earlier request that
  answers after a newer filter does not overwrite the table (both fail with the page
  reset or the generation guard removed).
- upgrading.md: an Unreleased section with migration 030 and the AI UI and tag search
  changes; the go.sum entry of #506 moves there from 0.25.0, which it is not part of.
- Migration 030 comment names aiTaggedArtifacts (addAITagMatch does not exist).
M0Rf30 added a commit that referenced this pull request Nov 23, 2026
…#513)

* feat(ai): show AI analysis results in the UI and make tags searchable

- Artifact Security tab shows the latest analysis per file whatever the outcome, with re-run
- Repository page gets an admin-only AI analysis tab with status filter (incl. failed + error)
- Search free text matches AI tags (whole tag, case-insensitive), readable-scope preserved
- Migration 030: GIN index on lower(tags)
- Docs updated

Fixes #512

* test(ai): repo AI analysis tab filter paging and stale answers; release notes

- RepoAIAnalysisTab: a status filter restarts at offset 0, and an earlier request that
  answers after a newer filter does not overwrite the table (both fail with the page
  reset or the generation guard removed).
- upgrading.md: an Unreleased section with migration 030 and the AI UI and tag search
  changes; the go.sum entry of #506 moves there from 0.25.0, which it is not part of.
- Migration 030 comment names aiTaggedArtifacts (addAITagMatch does not exist).
@M0Rf30 M0Rf30 mentioned this pull request Nov 27, 2026
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.

2 participants