Skip to content

Adds some cd-ing for safety in the justfile bash scripts #51

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

Merged
merged 1 commit into from
Oct 30, 2024

Conversation

damncabbage
Copy link
Contributor

… for cases where you might be using the justfile from outside the repo.

I happen to be calling just -f ~/code/encrypt-query-language/justfile reset for my benchmarking setup; I use .envrc for environment management, and actually cd-ing over there would mean I lose said environment setup.

(justfile_directory() has been part of Just since v0.94 or so, so it's safe to use.)

…here you might be using the justfile from outside the repo.
@damncabbage damncabbage requested a review from tobyhede October 30, 2024 03:08
Copy link
Contributor

@auxesis auxesis left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Love it, thanks @damncabbage.

@damncabbage damncabbage merged commit 9f45218 into main Oct 30, 2024
@damncabbage damncabbage deleted the rh/just-dirchange branch October 30, 2024 05:46
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants