Skip to content

Snapshot write path may be incorrect when scripts are run from repository root #86

Description

@cywf

Description\nThe snapshot scripts (, , ) use which writes to . In CI the working directory is , so snapshots are written to as expected. However if a developer runs the scripts from the repository root, points to the root, resulting in snapshots being written to which does not exist, causing errors or missing snapshots.\n\nSteps to Reproduce\n1. to the repository root.\n2. Run Fetching repository data....\n3. Observe that no snapshot is generated in and an error may be thrown.\n\nExpected Behavior\nScripts should always write snapshots to regardless of the current working directory, or at least provide a clear error message.\n\nProposed Fix\nModify to resolve the path relative to the directory (e.g., using or by ensuring scripts before writing).\n\nLabels\nbug,enhancement

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't workingenhancementNew feature or request

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions