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

update repo-mock to init local tuf cache #282

Merged
merged 2 commits into from
Apr 13, 2023
Merged

Conversation

bdehamer
Copy link
Collaborator

Updates the @tufjs/repo-mock library with a new helper function which will set-up the remote repo mock endpoints and also initialize the local TUF cache w/ the generated "root.json".

Also adds support for configurable prefixes for the remote metadata and target URLs.

Signed-off-by: Brian DeHamer <bdehamer@github.com>
Copy link
Collaborator

@ejahnGithub ejahnGithub left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

i think we should also use the path.join func we build for joinging the dir and file. but we can do it later. i can create a issue for this
but besides that overall lgtm.

packages/repo-mock/src/index.ts Show resolved Hide resolved
@bdehamer bdehamer merged commit c13096d into main Apr 13, 2023
24 checks passed
@bdehamer bdehamer deleted the bdehamer/better-mock branch April 13, 2023 20:49
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.

None yet

2 participants