-
-
Notifications
You must be signed in to change notification settings - Fork 86
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
Library functions are hard to upgrade #126
Comments
I don't think there is any problem that needs solving in this regard.
In addition, the fact that we have a configuration YAML, does not mean we need to overload it with details. I want users to not need to constantly refer to the documentation. The That said - there might be a case for creating some simple functionality, which should aim to be zero-effort from the user standpoint, to solve things like #86 - for example:
Or something of that sort. |
My experience has been, that even if it is not necessary to upgrade now, it is usually better to do it anyway so that when there is something you need you don't also end up with a bunch of other new changes to sort through if something goes funny. Anyway, I like your suggestion of just having a |
This is now implemented. If you already have library functions, you will need to first re-add them using the new version (once it is released, using |
Right now, adding the built-in libraries to a program with
bashly add
just copies the files out of the Bashly source code and into the user program. As a result, the user program doesn't get any improvements to the library when it's changed upstream.Here are a couple ideas for ways this might be improved:
bashly status
that checks if the library is outdated and abashly upgrade
that copies over a new version. This should probably keep a list of old library version hashes or something, so it can tell if the library has been modified since being added to avoid deleting user customizations.lib
config key which lists which built-in libraries to add to the program. In this way, the libraries will be automatically updated when a new bashly version is used.bashly add
could be renamed e.g.bashly fork-lib
for the case when a program author wants to have a version of the library with custom changes.(I think I'd prefer the second option, but not strongly.)
The text was updated successfully, but these errors were encountered: