Skip to content

Separate transitive lockfile dependencies - #9

Merged
nodeselector merged 1 commit into
mainfrom
ns/transitive-lockfile-sections
Apr 30, 2026
Merged

Separate transitive lockfile dependencies#9
nodeselector merged 1 commit into
mainfrom
ns/transitive-lockfile-sections

Conversation

@nodeselector

Copy link
Copy Markdown
Collaborator

Summary

Separate transitive lockfile dependencies from direct ones in the generated lockfile output, and make the demo surface that behavior clearly.

What changed

  • classify lockfile entries into direct and transitive sections when writing dependencies:
  • print # Transitive dependencies only when transitive entries are present
  • deduplicate duplicate NWO@ref entries in WriteDependencies(), with direct entries winning over transitive ones
  • update try-it output helpers so comment lines in the lockfile are visible
  • update the check-autofix demo fixture to include a nested composite action so the transitive section appears in a normal non-interactive demo
  • update the VHS tape to show the new behavior

Demo

Updated lockfile output

Verification

  • go test ./...
  • demo/try-it.sh check-autofix

Copilot AI review requested due to automatic review settings April 30, 2026 03:39
@nodeselector
nodeselector merged commit 276bff0 into main Apr 30, 2026
5 of 6 checks passed
@nodeselector
nodeselector removed the request for review from Copilot April 30, 2026 04:01
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