This repository was archived by the owner on Apr 15, 2025. It is now read-only.
Stage local files to an OSDF origin #19
Open
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
This PR creates a small command line tool to stage a local file to a unique name on a remote OSDF origin. It is meant to be idempotent; that is, it can be run many times and will only upload once as long as the file contents are unchanged.
If you replace the local filename with the generated OSDF URL, the user is guaranteed to get the current copy of the file from the OSDF (as the name is unique) and not a prior one
It is intended to be used with a AP-side job hook launched by the shadow prior to the job being activated. This way, the shadow will upload the file to the origin and the EP will download it via the OSDF.
An example use case would be a user who prefers to update their SIF file in-place -- they would always get the "correct as of time of job launch" version of their SIF.