Skip to content
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

use denv v1.1.0's quiet no-overwrite init flags #1492

Open
wants to merge 5 commits into
base: trunk
Choose a base branch
from

Conversation

tomeichlersmith
Copy link
Member

This simplifies just init for newer denv users and avoids a confusing error message that is ignored because we immediately follow up a missing workspace with creating the workspace.

this simplifies just init for newer denv and avoids a confusing error
message that is usually just passed by
@tvami
Copy link
Member

tvami commented Nov 13, 2024

I tried to test this, but I get

/run/user/3852/just/just-JaiBXy/init: line 107: [: : integer expression expected

on POD when I do just init in this branch with apptainer

@tvami
Copy link
Member

tvami commented Nov 13, 2024

Doing it on SLAC, where I had older denv I get

[tamasvami@sdfiana006 ldmx-sw]$ just init
/run/user/46072/just/just-GnFnRN/init: line 107: [: : integer expression expected
This directory does not exist. Would you like to create it for the denv? [Y/n] Y
mkdir: unrecognized option '--no-mkdir'
Try 'mkdir --help' for more information.
error: Recipe `init` failed with exit code 1

so maybe we should add another msg to make sure the user uses new enough denv

@tomeichlersmith
Copy link
Member Author

Apologies! I should have opened this as draft. I did not do any testing myself on anywhere outside my laptop. I'll mark as ready-for-review when I feel like it is ready.

@tomeichlersmith tomeichlersmith marked this pull request as draft November 18, 2024 15:55
typo was preventing getting the minor version causing that check to
always fail. also putting quotes around all the environment variables
now as well.
new shellcheck recipe is focused on shellcheck'ing the recipes within
the justfile itself. As they get more complicated, it is helpful to make
sure that we maintain good shell style.

Don't leave shellchecks early on an error so that we can make sure that
the temporary files that are spawned are removed.
allows possibility of white-space characters in filepaths
@tomeichlersmith tomeichlersmith marked this pull request as ready for review November 22, 2024 22:04
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