Add the ability to specify a git repository branch for gxpkg install #703
Labels
No labels
UX
active development
backlog
blocker
bootstrap
bounty
bug
dependencies
discussion
documentation
duplicate
enhancement
flaky test
help wanted
invalid
javascript
question
release
tendentious
wontfix
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
mighty-gerbils/gerbil#703
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
This has probably already been considered, or is a known bad idea but in case not:
It would be useful to be be able to specify a non-default branch in the package repository for
gxpkg install, e.g. withgxpkg install github.com/org/package/branchThe code here would need to execute
git switch(or the oldergit checkoutfor compatibility with historical git releases):https://github.com/vyzo/gerbil/blob/master/src/tools/gxpkg.ss#L226
I found that this would be useful when integrating a set of packages into a container build. One of the packages needed fixes applied to work in my scenario. I found it necessary to force the fixes onto the default/master branch in the package repository in order for
gxpkgto pick them up. Better to have kept the fixes on a branch and pointedgxpkgat that branch.This sounds like a very desirable feature. Care for a patch?
Is the
gxpkg install github.com/org/package/branchsyntax acceptable (wheregxpkg install github.com/org/packagemeans "use the default branch")?Maybe
...@thingis better?We can also use tags, commits, and whatnot, not just branches.
Oh yes good idea (not enough coffee yet this morning..)
This is implemented in #916.