Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

wezterm.plugin.checkout(revision) #6461

Open
dfaerch opened this issue Dec 5, 2024 · 0 comments
Open

wezterm.plugin.checkout(revision) #6461

dfaerch opened this issue Dec 5, 2024 · 0 comments
Labels
enhancement New feature or request

Comments

@dfaerch
Copy link

dfaerch commented Dec 5, 2024

Managing multiple branches or tags seems necessary for plugin-developers to handle future breaking changes. Introducing changes that alter configuration or behavior would cause issues for existing users. So i would like to eg. have a stable "version1". Then at some point i could start a "version2" where i introduce breaking changes, while still giving existing users access to "version1" and security patches for version1.

I explored if i could add a tag or branch to a git URL, but that doesnt seem to be possible.

I suggest implementing git checkout, so you can do:

passrelay = wezterm.plugin.require("https://github.com/someuser/someplugin.wezterm")
passrelay.checkout("v1")
passrelay.apply_to_config(...)

I thought about adding it as .require(url,revision), but that would probably not be optimal if people just want to switch branch, whilst already having the repo installed.

Using git checkout provides access to checking out tags, branching and even reverting to a previous commit using its hash, enabling retrieval of older versions when needed.

@dfaerch dfaerch added the enhancement New feature or request label Dec 5, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant