-
Notifications
You must be signed in to change notification settings - Fork 96
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
Using bpkg to install bashunit #168
Comments
On most systems, once installed to Running Full output/tmp$ curl -sLo- get.bpkg.sh | bash
% Total % Received % Xferd Average Speed Time Time Time Current
Dload Upload Total Spent Left Speed
100 3192 100 3192 0 0 13243 0 --:--:-- --:--:-- --:--:-- 13244
info: Welcome to the 'bpkg' installer!
info: Checking for git...
info: Creating temporary files...
info: Fetching 'bpkg@1.1.4'...
info: Installing...
info: Uninstalling /home/ben/.local/bin/bpkg*
rm: /home/ben/.local/bin/bpkg'
info: Installing /home/ben/.local/bin/bpkg...
info: Done! /tmp$ bpkg install TypedDevs/bashunit
info: Install /TypedDevs/bashunit/master from remote https://raw.githubusercontent.com [https://github.com]
info: Install dependencies for bashunit
fetch: https://raw.githubusercontent.com//TypedDevs/bashunit/master/bashunit
warn: BPKG_PACKAGE_DEPS is '/tmp/deps'
write: /tmp/deps/bashunit/bashunit
bashunit to PATH: /tmp/deps/bin/bashunit
/tmp$ bash $(which bpkg-install) TypedDevs/bashunit
info: Install /TypedDevs/bashunit/master from remote https://raw.githubusercontent.com [https://github.com]
info: Install dependencies for bashunit
fetch: https://raw.githubusercontent.com//TypedDevs/bashunit/master/bashunit
warn: BPKG_PACKAGE_DEPS is '/tmp/deps'
write: /tmp/deps/bashunit/bashunit
bashunit to PATH: /tmp/deps/bin/bashunit @Chemaclass Could you verify that calling Using |
Looks like The option here are:
|
@Potherca, not to spur any controversy, but I'd recommend the following (single line) command (option #2) instead:
This approach keeps the Beyond the suggestion of the install option, I'd also encourage (if installing as a non-root user) add the user |
@samlikins Good call! I'll updated my response. 👍 Wouldn't I do know Zsh doesn't load |
@Potherca, nice thought. The |
@Potherca I've Install Output
If I try to run it from the terminal as
I guess because the script it's not on the But if I run Output
I think the installer it's not working correctly, right? |
@khru, it looks like you're attempting to install BashUnit globally (not as a dependency), but I think you forgot to add the global flag. The project should have been installed in |
I added I think this is because in the installation command we are copying only the entry point file, and not all Is this the right place to change? https://github.com/TypedDevs/bashunit/blob/main/bpkg.json#L5 or somewhere else? 🤔
|
The first thing I want to point out, is that since you added your user bin into the Secondly, the command you ran to install BashUnit was for performing a local install; local to the current directory (which looks to be the user directory). The difference between a local and global install is which configuration is used; local uses the The line you referenced (for global installs) would be what is executed when running In your project, the primary script (ie: Though BashUnit will likely be used as a development dependency, consider the users that decide to install it globally; all files will be installed in a directory which should be on the I hope this helps you progress in this avenue. |
I am trying to install bashunit in my local using bpkg, but I dont know exactly what am I doing wrong 🤔
What does this error means?
error: Missing "bpkg-json" dependency
What's the ideal way to use this library?
Wouldn’t be a good idea to create a symlink from
~/.local/bin/bpkg
to/bin/bpkg
when using the curl installation?The text was updated successfully, but these errors were encountered: