Skip to content

feat:snap can be queried by revision and track/risk/branch check in the channel will be supported#4439

Merged
spiffcs merged 4 commits intoanchore:mainfrom
VictorHuu:snap-info-revision
Dec 18, 2025
Merged

feat:snap can be queried by revision and track/risk/branch check in the channel will be supported#4439
spiffcs merged 4 commits intoanchore:mainfrom
VictorHuu:snap-info-revision

Conversation

@VictorHuu
Copy link
Contributor

@VictorHuu VictorHuu commented Dec 5, 2025

Description

This PR supports that user can query the snap info by revision besides channel.

The latest specification of a snap is proposed below:

name:revision@channel

or

name:revision@risk (architecture)

Note that the specified revision may conflict with the channel. In such cases, the revision takes precedence.

Type of change

  • New feature (non-breaking change which adds functionality)

Checklist:

  • I have added unit tests that cover changed behavior
  • I have tested my code in common scenarios and confirmed there are no regressions
  • I have added comments to my code, particularly in hard-to-understand sections

TODO

  • Need to support track/risk/branch check of the channel

Signed-off-by: Yuntao Hu <victorhu493@gmail.com>
Signed-off-by: Yuntao Hu <victorhu493@gmail.com>
@VictorHuu VictorHuu marked this pull request as ready for review December 5, 2025 12:41
@VictorHuu VictorHuu marked this pull request as draft December 5, 2025 14:28
@VictorHuu VictorHuu changed the title feat:snap can be queried by revision feat:snap can be queried by revision and major/minor tracks in the channel will be supported Dec 5, 2025
Signed-off-by: Yuntao Hu <victorhu493@gmail.com>
@VictorHuu VictorHuu changed the title feat:snap can be queried by revision and major/minor tracks in the channel will be supported feat:snap can be queried by revision and track/risk check in the channel will be supported Dec 6, 2025
Signed-off-by: Yuntao Hu <victorhu493@gmail.com>
@VictorHuu VictorHuu changed the title feat:snap can be queried by revision and track/risk check in the channel will be supported feat:snap can be queried by revision and track/risk/branch check in the channel will be supported Dec 6, 2025
@VictorHuu VictorHuu marked this pull request as ready for review December 6, 2025 07:33
Copy link
Contributor

@spiffcs spiffcs left a comment

Choose a reason for hiding this comment

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

<3 TY For the contribution @VictorHuu this is excellent

@spiffcs spiffcs merged commit c9760d2 into anchore:main Dec 18, 2025
12 checks passed
spiffcs added a commit that referenced this pull request Dec 19, 2025
* main: (76 commits)
  feat: snap can be queried by revision and ```track/risk/branch``` (#4439)
  fix: 4423 dotnet-deps cataloger skips project type by def
  signpost to docs site (#4483)
  chore(deps): bump github/codeql-action from 4.31.8 to 4.31.9 (#4481)
  chore(deps): bump github.com/goccy/go-yaml from 1.19.0 to 1.19.1 (#4482)
  Detect embedded deps.json in .NET binaries (#4375)
  chore(deps): bump actions/cache from 5.0.0 to 5.0.1 (#4476)
  chore(deps): bump actions/cache in /.github/actions/bootstrap (#4477)
  chore(deps): update tools to latest versions (#4473)
  unapply base path for resolver inbound requests (#4478)
  fix: golang PURL should include full module (#4395)
  fix:best effort to get the os info of an ELF binary (#4438)
  Improve PR template (#4472)
  feat: add support for Gemfile.next.lock (#4457)
  chore:cancel in-progress workflows for new commits on same PR (#4465)
  chore(deps): update tools to latest versions (#4466)
  chore(deps): bump github/codeql-action from 4.31.7 to 4.31.8 (#4468)
  chore(deps): bump actions/cache from 4.3.0 to 5.0.0 (#4469)
  chore(deps): bump github.com/anchore/stereoscope from 0.1.14 to 0.1.16 (#4470)
  chore(deps): bump actions/cache in /.github/actions/bootstrap (#4471)
  ...

Signed-off-by: Christopher Phillips <32073428+spiffcs@users.noreply.github.com>
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.

Specify specific snap revision to pull

2 participants