Skip to content

Commit

Permalink
[envsec] fix dev (#237)
Browse files Browse the repository at this point in the history
## Summary

We're accidentally checking wrong config.

## How was it tested?
  • Loading branch information
mikeland73 authored Dec 20, 2023
1 parent d784a6c commit 944b419
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions pkg/envcli/flags.go
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@ import (
"github.com/pkg/errors"
"github.com/spf13/cobra"
"go.jetpack.io/envsec"
"go.jetpack.io/envsec/internal/build"
"go.jetpack.io/envsec/pkg/awsfed"
envsecLib "go.jetpack.io/envsec/pkg/envsec"
"go.jetpack.io/pkg/auth/session"
Expand Down Expand Up @@ -58,6 +59,7 @@ func (f *configFlags) validateProjectID(orgID id.OrgID) (string, error) {
}
config, err := (&envsecLib.Envsec{
WorkingDir: wd,
IsDev: build.IsDev,
}).ProjectConfig(wd)
if errors.Is(err, os.ErrNotExist) {
return "", fmt.Errorf(
Expand Down

0 comments on commit 944b419

Please sign in to comment.