Skip to content

Commit

Permalink
wip: setup process bucket
Browse files Browse the repository at this point in the history
  • Loading branch information
jahvon committed Oct 23, 2024
1 parent c0dd0c0 commit 5fde250
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions cmd/internal/exec.go
Original file line number Diff line number Diff line change
Expand Up @@ -95,6 +95,11 @@ func execFunc(ctx *context.Context, cmd *cobra.Command, verb executable.Verb, ar
if err := e.Validate(); err != nil {
logger.FatalErr(err)
}
replacer := strings.NewReplacer(":", "_", "/", "_", " ", "_")
bucketID := replacer.Replace(ref.String())
if err := os.Setenv(store.BucketEnv, bucketID); err != nil {
logger.Warnf("unable to switch to process bucket %s", bucketID)
}

if !e.IsExecutableFromWorkspace(ctx.CurrentWorkspace.AssignedName()) {
logger.FatalErr(fmt.Errorf(
Expand Down

0 comments on commit 5fde250

Please sign in to comment.