Skip to content

Commit

Permalink
Merge pull request #158 from akamai/release/v1.5.1
Browse files Browse the repository at this point in the history
Release/v1.5.1
  • Loading branch information
mgwoj authored Jun 8, 2022
2 parents 4192214 + c7b8ac4 commit 76bcb5c
Show file tree
Hide file tree
Showing 5 changed files with 14 additions and 5 deletions.
6 changes: 6 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,9 @@
# 1.5.1 (June 8, 2022)

## Fixes

* `update` command does not work for some packages, ie. `cli-terraform`

# 1.5.0 (May 26, 2022)

## Enhancements
Expand Down
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -252,15 +252,15 @@ To see additional log information, prepend `AKAMAI_LOG=<logging-level>` to any C
For example, to see extra debug information while updating the property-manager package, run:

```sh
AKAMAI_CLI_LOG=debug akamai update property-manager
AKAMAI_LOG=debug akamai update property-manager
```

Each level is a progressive superset of all previous tiers. The output for `debug` also includes `fatal`, `error`, `warn`, and `info` logs.

If you want to redirect logs to a file, use the `AKAMAI_CLI_LOG_PATH` environmental variable:

```sh
AKAMAI_CLI_LOG=debug AKAMAI_CLI_LOG_PATH=akamai.log akamai update property-manager
AKAMAI_LOG=debug AKAMAI_CLI_LOG_PATH=akamai.log akamai update property-manager
```

## Dependencies
Expand Down
3 changes: 3 additions & 0 deletions pkg/git/repository.go
Original file line number Diff line number Diff line change
Expand Up @@ -88,6 +88,9 @@ func (r *repository) CommitObject(h plumbing.Hash) (*object.Commit, error) {
}

func translateError(err error, defaultErrorFormat string) error {
if err == nil {
return nil
}
if err == transport.ErrAuthenticationRequired {
return ErrPackageNotAvailable
}
Expand Down
4 changes: 2 additions & 2 deletions pkg/log/log_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -31,8 +31,8 @@ func TestSetupContext(t *testing.T) {
expectedLevel: log.DebugLevel,
},
"invalid path passed": {
envs: map[string]string{"AKAMAI_CLI_LOG_PATH": ".", "AKAMAI_CLI_LOG": "INFO"},
expectedLevel: log.ErrorLevel,
envs: map[string]string{"AKAMAI_CLI_LOG_PATH": ".", "AKAMAI_LOG": "INFO"},
expectedLevel: log.InfoLevel,
withError: regexp.MustCompile(`ERROR.*Invalid value of AKAMAI_CLI_LOG_PATH`),
},
"invalid log level passed, output to terminal": {
Expand Down
2 changes: 1 addition & 1 deletion pkg/version/version.go
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ import "github.com/Masterminds/semver"

const (
// Version Application Version
Version = "1.5.0"
Version = "1.5.1"
// Equals p1==p2 in version.Compare(p1, p2)
Equals = 0
// Error failure parsing one of the parameters in version.Compare(p1, p2)
Expand Down

0 comments on commit 76bcb5c

Please sign in to comment.