Skip to content

Commit

Permalink
Merge pull request #11 from psampaz/0.3.0
Browse files Browse the repository at this point in the history
Prepare v0.3.0
  • Loading branch information
psampaz authored Apr 30, 2019
2 parents eebb44e + 32e3be5 commit 0a9f58a
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 9 deletions.
4 changes: 2 additions & 2 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,10 +3,10 @@ All notable changes to this project will be documented in this file.

The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/)

## [0.3.0] unreleased
## [0.3.0] 2019-05-01
### Added
- osx in travis
- Flag '-ci' to exit with non-zero exit code when an outdated dependency is found
- osx in travis
### Removed
- tip version in travis

Expand Down
9 changes: 2 additions & 7 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -74,20 +74,15 @@ If you want to see only the direct depedencies that have updates run
go list -u -m -json all | go-mod-outdated -update -direct
```

If you want to make your CI pipeline fail

```
go list -u -m -json all | go-mod-outdated -direct -ci
```
### CI pipelines

Using the -ci flag will the make the command exit with none zero code, breaking this way your ci pipelines.

If you want to make your CI pipeline fail if any direct or indirect dependency is outdated use the following:
If you want to make your CI pipeline fail if **any direct or indirect** dependency is outdated use the following:
```
go list -u -m -json all | go-mod-outdated -ci
```
If you want to make your CI pipeline fail only if a direct dependency is outdated use the following:
If you want to make your CI pipeline fail **only if a direct** dependency is outdated use the following:
```
go list -u -m -json all | go-mod-outdated -direct -ci
```
Expand Down

0 comments on commit 0a9f58a

Please sign in to comment.