Skip to content

Commit

Permalink
fix: cdk v3 feature flag (#1560)
Browse files Browse the repository at this point in the history
  • Loading branch information
jon-stewart authored Feb 23, 2024
1 parent ddec80b commit 57876bc
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion lwcomponent/catalog.go
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ import (
const (
componentCacheDir string = "components"
cdkCacheName string = "cdk_cache"
featureFlag string = "PUBLIC.cdk.v2"
featureFlag string = "PUBLIC.cdk.v3"
operatingSystem string = runtime.GOOS
architecture string = runtime.GOARCH
)
Expand Down
4 changes: 2 additions & 2 deletions lwcomponent/component.go
Original file line number Diff line number Diff line change
Expand Up @@ -503,13 +503,13 @@ func (c Component) SignatureFromDisk() ([]byte, error) {
return sig, errors.New("component signature file does not exist")
}

dat, err := os.ReadFile(csPath)
sig, err = os.ReadFile(csPath)
if err != nil {
return sig, errors.Wrap(err, "unable to read component signature file")
}

// Artifact signature may or may not be b64encoded
decoded_sig, err := base64.StdEncoding.DecodeString(string(dat))
decoded_sig, err := base64.StdEncoding.DecodeString(string(sig))
if err == nil {
sig = decoded_sig
}
Expand Down

0 comments on commit 57876bc

Please sign in to comment.