the-draupnir-project/Draupnir

Relative dataPath directory support implementation is relative to install directory, not current working directory

Open

#241 opened on Feb 7, 2024

View on GitHub
 (2 comments) (0 reactions) (0 assignees)TypeScript (28 forks)auto 404
L1 Very FewP1 NuisanceT3 Workflow Issuegood first issue

Repository metrics

Stars
 (239 stars)
PR merge metrics
 (PR metrics pending)

Description

https://github.com/the-draupnir-project/Draupnir/blob/faee9367af5a3041368152d451e38c8d7be630dc/src/index.ts#L69

If a relative path is passed, it ends up evaluating to $DIST/../$DATA_PATH, rather than ./$DATA_PATH. This becomes an issue once you are not in the workspace (eg. you've installed Draupnir on nix, where it lives in /nix/store/awewaef3-draupnir-1.86.1/...)

Contributor guide