Skip to content

feat(goose-cli): add cargo feature to disable update command#5846

Closed
kskarthik wants to merge 24 commits intoblock:mainfrom
kskarthik:disable-cli-update
Closed

feat(goose-cli): add cargo feature to disable update command#5846
kskarthik wants to merge 24 commits intoblock:mainfrom
kskarthik:disable-cli-update

Conversation

@kskarthik
Copy link
Copy Markdown
Contributor

@kskarthik kskarthik commented Nov 22, 2025

Summary

Added a feature to the goose-cli crate to disable the update command.

Usecase: I have packaged goose for openSUSE Tumbleweed & i had to patch the build to disable update.

This feature comes handy instead of patching the code & quiet helpful for other distro package maintainers as well 🙂

Type of Change

  • Feature
  • Bug fix
  • Refactor / Code quality
  • Performance improvement
  • Documentation
  • Tests
  • Security fix
  • Build / Release
  • Other (specify below)

AI Assistance

  • This PR was created or reviewed with AI assistance

Testing

Tested manually

Screenshots/Demos (for UX changes)

Before:

$: goose update
WINDIR: <not set>
OSTYPE: linux
uname -s: Linux
uname -m: x86_64
PWD: /home/sai/my/code/goose-src
Detected OS: linux with ARCH x86_64
...

After:

$: cargo build --package goose-cli --features disable-update

$: goose update
Error: This command is disabled

@kskarthik kskarthik changed the title feat(goose-cli): add cargo feature to disable update feat(goose-cli): add cargo feature to disable update command Nov 22, 2025
Copy link
Copy Markdown
Collaborator

@michaelneale michaelneale left a comment

Choose a reason for hiding this comment

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

nice one @kskarthik, I can appreciate with packagers you want to have this.

@michaelneale michaelneale self-assigned this Nov 24, 2025
@kskarthik
Copy link
Copy Markdown
Contributor Author

Thanks for reviewing this! @michaelneale

I guess that the failing CI test above can be ignored, just an issue with npm package lock

@michaelneale
Copy link
Copy Markdown
Collaborator

@kskarthik if you update to main - then it should build now, thanks

@kskarthik kskarthik requested a review from a team as a code owner November 25, 2025 05:00
@kskarthik
Copy link
Copy Markdown
Contributor Author

Done

DOsinga and others added 22 commits November 26, 2025 14:05
Co-authored-by: Douwe Osinga <[email protected]>
Signed-off-by: Sai Karthik <[email protected]>
block#5819)

Signed-off-by: Vaibhav Maheshwari <[email protected]>
Co-authored-by: Claude <[email protected]>
Signed-off-by: Sai Karthik <[email protected]>
* Add Markdown export of any doc page by appending `.md` to the URL
* New "View as Markdown" dropdown menu from the "copy page" button

Signed-off-by: Sai Karthik <[email protected]>
Co-authored-by: Douwe Osinga <[email protected]>
Signed-off-by: Sai Karthik <[email protected]>
Co-authored-by: Douwe Osinga <[email protected]>
Signed-off-by: Sai Karthik <[email protected]>
urgent need for runner failure

Signed-off-by: Sai Karthik <[email protected]>
Co-authored-by: Douwe Osinga <[email protected]>
Signed-off-by: Sai Karthik <[email protected]>
@kskarthik kskarthik closed this Nov 26, 2025
@kskarthik kskarthik deleted the disable-cli-update branch November 26, 2025 08:56
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.