-
Couldn't load subscription status.
- Fork 450
Move libexec/ files to libexec/bats-core/ #105
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
Conversation
As requested by @HRio in alpinelinux/aports#3182, this improves encapsulation of Bats-specific files when installed directly into a common directory such as /usr or /usr/local. Also per @HRio's hint that git does something similar, I checked and saw that git contains libexec/git-core. Given both that convention and the name of this project, naming the directory "bats-core" instead of "bats" seemed to make sense.
|
Loaded questions (sorry!):
|
|
Loaded answers:
Not directly, no. I think package maintenance tools typically handle cleanup, though I'm not certain. @HRio and @Nebukadneza? Though I know #50 proposes an uninstall feature, we haven't had one before. If we do want to add one, I can add it (i.e. I think it can be a lot more straightforward than the implementation in #50). And if we're really paranoid, I can push an uninstall feature, release v1.0.2, then merge this (with uninstall updates) and release v1.0.3.
From the perspective of the public user interface, not at all. |
|
I have to say I fall into the really paranoid camp ;) I like the suggestion to have uninstall before this change, as I think a user could conceivably end up with two bats installations. I don't mean to make additional work out of nothing though, would welcome others' thoughts. |
|
@mbland agree its the distribution provided package managers job to keep track of files for installed for a specific package and the files in the package (and to handle /etc/ with extra care). If a user is installing "non packages" they should use stow https://www.gnu.org/software/stow/ or similar. Uninstall by a script shipped by upstream will always risk being out of sync with the files that are actually installed in the install phase. One thing that I think should be improved in |
|
Thanks for the input, @HRio. So @sublimino, are you OK with approving, then? Also, after this goes in, I'll open another PR to update |
|
Screw it, I went ahead and pushed a commit to revamp @sublimino Mind giving me an official code review approval? (Or @jasonkarns and @btamayo if so inclined.) |
|
root@5ea17cbc270d:/bats-core# ./install.sh /usr/local/
Installed Bats to /usr/local//bin/bats
root@5ea17cbc270d:/bats-core# bats
Bats 1.0.1
Usage: bats [-c] [-p | -t] <test> [<test> ...]LGTM, nice one @mbland |
|
@sublimino Thanks for that, but two things (presented in a spirit of curiosity in search of clarity—not accusation!):
|
|
Ah! Thanks for mentioning. I see what's happened:
GitHub foibles that I'd forgotten about, apologies. To preserve a clean history I wish I could do a signed merge commit locally and force push. Obvious balance of priorities - my preference is gpg signed everything (apologies for the UI rebase from that perspective) but force pushing to a public master is a no-go, so I guess I've forced my own hand on that one. Sorry. Can't see how to disable rebase in UI on mobile either. To ensure a chain of trust you could make a contrived commit with the unsigned commit hashes referenced in the commit message. Not ideal but enough for an auditor if that ever occurred? |
|
No worries. I think the v1.0.2 commit I'm about to sign and push should suffice. (I can tell those were my original changes in the "unverified" commits, after all!) |
|
And v1.0.2 is released. |
As requested by @HRio in alpinelinux/aports#3182, this improves encapsulation of Bats-specific files when installed directly into a common directory such as /usr or /usr/local.
Also per @HRio's hint that git does something similar, I checked and saw that git contains libexec/git-core. Given both that convention and the name of this project, naming the directory "bats-core" instead of "bats" seemed to make sense.
Once this goes in, I may cut v1.0.2 so we can get this and the fix from #48 out the door, unless anyone objects.
cc: @Nebukadneza