-
Notifications
You must be signed in to change notification settings - Fork 30
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
updated/fixed hauler directory #354
updated/fixed hauler directory #354
Conversation
Outside of any variable name suggestions from @dweomer, I'm happy with this PR. Thanks for tackling @zackbradys. @hauler-dev/maintainers We should make sure that this is documented well. Maybe even include examples in the GitHub release notes whenever it's released. |
I agree... I'll start work on a first draft of docs... @amartin120 @CamrynCarter |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This looks fine, but we should probably bite the bullet and provide flag parity with the new envvars, aka --hauler-home
and --hauler-temp
(or --home
and --temp
) flags with the envvars overriding the default values for the flags.
reverts commit 54f7a4d
zackbradys@MacBookPro hauler % ./dist/hauler_darwin_arm64_v8.0/hauler store info
+-----------+------+----------+----------+------+
| REFERENCE | TYPE | PLATFORM | # LAYERS | SIZE |
+-----------+------+----------+----------+------+
+-----------+------+----------+----------+------+
| TOTAL | 0 B |
+-----------+------+----------+----------+------+
zackbradys@MacBookPro hauler % ./check.sh
checking ~/.hauler...
cosign
checking ~/.haulersss...
ls: /Users/zackbradys/.haulersss: No such file or directory
checking ~/.haulersssss...
ls: /Users/zackbradys/.haulersssss: No such file or directory
removing directories...
zackbradys@MacBookPro hauler % ./dist/hauler_darwin_arm64_v8.0/hauler store info --haulerdir ~/.haulersss
+-----------+------+----------+----------+------+
| REFERENCE | TYPE | PLATFORM | # LAYERS | SIZE |
+-----------+------+----------+----------+------+
+-----------+------+----------+----------+------+
| TOTAL | 0 B |
+-----------+------+----------+----------+------+
zackbradys@MacBookPro hauler % ./check.sh
checking ~/.hauler...
ls: /Users/zackbradys/.hauler: No such file or directory
checking ~/.haulersss...
cosign
checking ~/.haulersssss...
ls: /Users/zackbradys/.haulersssss: No such file or directory
removing directories...
zackbradys@MacBookPro hauler % export HAULER_DIR=~/.haulersssss
zackbradys@MacBookPro hauler % ./dist/hauler_darwin_arm64_v8.0/hauler store info --haulerdir ~/.haulersss
+-----------+------+----------+----------+------+
| REFERENCE | TYPE | PLATFORM | # LAYERS | SIZE |
+-----------+------+----------+----------+------+
+-----------+------+----------+----------+------+
| TOTAL | 0 B |
+-----------+------+----------+----------+------+
zackbradys@MacBookPro hauler % ./check.sh
checking ~/.hauler...
ls: /Users/zackbradys/.hauler: No such file or directory
checking ~/.haulersss...
cosign
checking ~/.haulersssss...
ls: /Users/zackbradys/.haulersssss: No such file or directory
removing directories...
zackbradys@MacBookPro hauler % ./dist/hauler_darwin_arm64_v8.0/hauler store info
+-----------+------+----------+----------+------+
| REFERENCE | TYPE | PLATFORM | # LAYERS | SIZE |
+-----------+------+----------+----------+------+
+-----------+------+----------+----------+------+
| TOTAL | 0 B |
+-----------+------+----------+----------+------+
zackbradys@MacBookPro hauler % ./check.sh
checking ~/.hauler...
ls: /Users/zackbradys/.hauler: No such file or directory
checking ~/.haulersss...
ls: /Users/zackbradys/.haulersss: No such file or directory
checking ~/.haulersssss...
cosign
removing directories...
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
okay, so, left a bunch of nits that we don't necessarily need to address right now.
Please check below, if the PR fulfills these requirements:
Associated Links:
Types of Changes:
Proposed Changes:
hauler
directory...HAULER_DIR
install.sh
artifacts, and binariesinstall.sh
script to use the same environment variable/argument asHAULER_DIR
instead of the previously hard coded$HOME/.hauler
hauler
temp directory...HAULER_TEMP_DIR
hauler/hauler help
to state available environment variablesVerification/Testing of Changes:
git clone https://github.com/zackbradys/hauler.git && cd hauler && make build
Changes to CLI Comments...
New
HAULER_DIR
Environment Variable...New
HAULER_TEMP_DIR
Environment Variable...New
HAULER_DIR
toinstall.sh
...