Skip to content

Commit

Permalink
Merge pull request #3570 from ActiveState/version/0-46-1-RC1
Browse files Browse the repository at this point in the history
Version 0.46.1-RC1
  • Loading branch information
Naatan authored Oct 29, 2024
2 parents 6624ca5 + 2bd15f9 commit f2b326f
Show file tree
Hide file tree
Showing 4 changed files with 10 additions and 3 deletions.
6 changes: 6 additions & 0 deletions changelog.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,12 @@ The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
and this project adheres to
[Semantic Versioning](https://semver.org/spec/v2.0.0.html).

## 0.46.1

### Fixed

* Fixed regression in `state refresh` where it would exit with a non-zero code when there were no changes.

## 0.46.0

### Added
Expand Down
3 changes: 2 additions & 1 deletion internal/runners/refresh/refresh.go
Original file line number Diff line number Diff line change
Expand Up @@ -92,7 +92,8 @@ func (r *Refresh) Run(params *Params) error {
}

if !needsUpdate {
return locale.NewInputError("refresh_runtime_uptodate")
r.out.Notice(locale.T("refresh_runtime_uptodate"))
return nil
}

rti, err := runtime_runbit.Update(r.prime, trigger.TriggerRefresh, runtime_runbit.WithoutHeaders(), runtime_runbit.WithIgnoreAsync())
Expand Down
2 changes: 1 addition & 1 deletion test/integration/refresh_int_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ func (suite *RefreshIntegrationTestSuite) TestRefresh() {

cp = ts.Spawn("refresh")
cp.Expect("already up to date")
cp.ExpectExitCode(1)
cp.ExpectExitCode(0)
}

func (suite *RefreshIntegrationTestSuite) TestJSON() {
Expand Down
2 changes: 1 addition & 1 deletion version.txt
Original file line number Diff line number Diff line change
@@ -1 +1 @@
0.46.0-RC3
0.46.1-RC1

0 comments on commit f2b326f

Please sign in to comment.