Skip to content
Snippets Groups Projects

sg: fix generate command discarding arguments

Created by: jhchabran

The arguments were incorrectly passed with a .Tail() method, whereas it should be .Slice().

This re-enables to give specific packages to sg generate go.

Test plan

~/work/other US devx/fix-sg-generate-args $ go run ./dev/sg generate go enterprise/dev/ci
✅ go generating 1 packages  
ℹ️ go generate enterprise/dev/ci
ℹ️ goimports -w
ℹ️ go mod tidy
✅ (11s)

Merge request reports

Merged by avatar (Jul 30, 2025 11:49pm UTC)

Loading

Activity

Filter activity
  • Approvals
  • Assignees & reviewers
  • Comments (from bots)
  • Comments (from users)
  • Commits & branches
  • Edits
  • Labels
  • Lock status
  • Mentions
  • Merge request status
  • Tracking
Please register or sign in to reply
Loading