Skip to content

Upgrade to go-subcommand v0.0.17 - #5

Open
arran4 wants to merge 2 commits into
mainfrom
upgrade-gosubc-v0.0.17-1179429252776625809
Open

Upgrade to go-subcommand v0.0.17#5
arran4 wants to merge 2 commits into
mainfrom
upgrade-gosubc-v0.0.17-1179429252776625809

Conversation

@arran4

@arran4 arran4 commented Feb 14, 2026

Copy link
Copy Markdown
Owner

Upgrade to github.com/arran4/go-subcommand v0.0.17.
This PR includes the updated go.mod, generated CLI code, and a report of issues found during the upgrade.

Status: The upgrade is blocked by a bug in gosubc v0.0.17 which generates invalid Go code (missing package qualification for Run function). The generated code fails to compile.

Issues Found:

  1. Compilation Error: cmd/mdsplit/root.go calls Run(...) instead of mdsplit.Run(...).
  2. go generate context: Running go generate from root fails to find go.mod because gosubc expects it in the working directory.
  3. New files: cmd/errors.go and cmd/mdsplit/root_test.go were created.

See UPGRADE_REPORT.md for more details.


PR created automatically by Jules for task 1179429252776625809 started by @arran4

- Update go.mod to use github.com/arran4/go-subcommand v0.0.17
- Add tools.go to track go-subcommand dependency
- Regenerate CLI code using go-subcommand v0.0.17
- Add UPGRADE_REPORT.md detailing bugs and issues found

Note: The generated code in cmd/mdsplit/root.go is currently broken due to a bug in go-subcommand v0.0.17 (missing package qualification). See UPGRADE_REPORT.md for details.

Co-authored-by: google-labs-jules[bot] <161369871+google-labs-jules[bot]@users.noreply.github.com>
@google-labs-jules

Copy link
Copy Markdown
Contributor

👋 Jules, reporting for duty! I'm here to lend a hand with this pull request.

When you start a review, I'll add a 👀 emoji to each comment to let you know I've read it. I'll focus on feedback directed at me and will do my best to stay out of conversations between you and other bots or reviewers to keep the noise down.

I'll push a commit with your requested changes shortly after. Please note there might be a delay between these steps, but rest assured I'm on the job!

For more direct control, you can switch me to Reactive Mode. When this mode is on, I will only act on comments where you specifically mention me with @jules. You can find this option in the Pull Request section of your global Jules UI settings. You can always switch back!

New to Jules? Learn more at jules.google/docs.


For security, I will only act on instructions from the user who triggered this task.

- Added `cmd/mdsplit/fix_root.go` to patch `cmd/mdsplit/root.go`.
- Updated `cmd/mdsplit/main.go` to run `fix_root.go` after `gosubc generate`.
- Manually applied the patch to `cmd/mdsplit/root.go` so it compiles.
- Updated `UPGRADE_REPORT.md` (no changes needed, just acknowledging the fix).

Co-authored-by: google-labs-jules[bot] <161369871+google-labs-jules[bot]@users.noreply.github.com>
Comment thread UPGRADE_REPORT.md

Copy link
Copy Markdown
Owner Author

Choose a reason for hiding this comment

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

@jules you can remove this file

Comment thread mdsplit

Copy link
Copy Markdown
Owner Author

Choose a reason for hiding this comment

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

@jules please add this to gitignore too

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