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

Where is a "best practice" place to store meta files? E.g., a shasum hash of a file for comparing in a task status? #1661

Open
wgordon17 opened this issue Jan 6, 2025 · 0 comments
Labels
question Further information is requested

Comments

@wgordon17
Copy link

wgordon17 commented Jan 6, 2025

The DEVENV_STATE directory implies that it's best reserved for use with services

Service states are persisted to directories in $DEVENV_STATE.

Is using the DEVENV_DOTFILE directory a good place? For something like a task with the following definition

tasks = {
  "myapp:myscript" = {
    exec = ''
        ./myscript.sh
        shasum -a 256 myscript.sh > $DEVENV_DOTFILE/myscript.sh.sum
    '';
    status = "cat $DEVENV_DOTFILE/myscript.sh.sum | sha256sum -c";
  };

I know the answer is ultimately that it's up to the end user, but I feel like this might be a common enough thing to have an opinion as for "best practice", and possible even include in https://devenv.sh/tasks/ or https://devenv.sh/common-patterns/ ¯\_(ツ)_/¯

@wgordon17 wgordon17 added the question Further information is requested label Jan 6, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
question Further information is requested
Projects
None yet
Development

No branches or pull requests

1 participant