Skip to content

Commit

Permalink
strips the gcs path uri prefix (#45)
Browse files Browse the repository at this point in the history
avoids changing the engine
  • Loading branch information
Mike Vanbuskirk committed Jul 13, 2023
1 parent f15e9ab commit 3aff684
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion internal/engine/engine.go
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ func New(ctx context.Context, policyPath string, outputs []outputs.Output) (*eng
switch {
// GCS
case strings.HasPrefix(policyPath, "gs://"):
compiler, err = gcsCompiler(policyPath)
compiler, err = gcsCompiler(strings.TrimPrefix(policyPath, "gs://"))
if err != nil {
return nil, err
}
Expand Down

0 comments on commit 3aff684

Please sign in to comment.