Skip to content

Commit

Permalink
Merge pull request #33 from speakeasy-api/quick_remote_bundle_recogni…
Browse files Browse the repository at this point in the history
…tion_change

feat: recognize registry files
  • Loading branch information
ryan-timothy-albert authored Apr 19, 2024
2 parents 3661bfd + 80597be commit dc2d028
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions workflow/source.go
Original file line number Diff line number Diff line change
Expand Up @@ -94,6 +94,8 @@ func (s Source) GetOutputLocation() (string, error) {
inputFile := s.Inputs[0].Location

switch getFileStatus(inputFile) {
case fileStatusRegistry:
return filepath.Join(GetTempDir(), fmt.Sprintf("registry_%s", randStringBytes(10))), nil
case fileStatusLocal:
return inputFile, nil
case fileStatusNotExists:
Expand Down

0 comments on commit dc2d028

Please sign in to comment.