Skip to content

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

@wgordon17

Description

@wgordon17

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/ ¯\_(ツ)_/¯

Metadata

Metadata

Assignees

No one assigned

    Labels

    questionFurther information is requested

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions