Skip to content

Commit f2b326f

Browse files
authored
Merge pull request ActiveState#3570 from ActiveState/version/0-46-1-RC1
Version 0.46.1-RC1
2 parents 6624ca5 + 2bd15f9 commit f2b326f

File tree

4 files changed

+10
-3
lines changed

4 files changed

+10
-3
lines changed

changelog.md

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,12 @@ The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
66
and this project adheres to
77
[Semantic Versioning](https://semver.org/spec/v2.0.0.html).
88

9+
## 0.46.1
10+
11+
### Fixed
12+
13+
* Fixed regression in `state refresh` where it would exit with a non-zero code when there were no changes.
14+
915
## 0.46.0
1016

1117
### Added

internal/runners/refresh/refresh.go

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -92,7 +92,8 @@ func (r *Refresh) Run(params *Params) error {
9292
}
9393

9494
if !needsUpdate {
95-
return locale.NewInputError("refresh_runtime_uptodate")
95+
r.out.Notice(locale.T("refresh_runtime_uptodate"))
96+
return nil
9697
}
9798

9899
rti, err := runtime_runbit.Update(r.prime, trigger.TriggerRefresh, runtime_runbit.WithoutHeaders(), runtime_runbit.WithIgnoreAsync())

test/integration/refresh_int_test.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@ func (suite *RefreshIntegrationTestSuite) TestRefresh() {
3939

4040
cp = ts.Spawn("refresh")
4141
cp.Expect("already up to date")
42-
cp.ExpectExitCode(1)
42+
cp.ExpectExitCode(0)
4343
}
4444

4545
func (suite *RefreshIntegrationTestSuite) TestJSON() {

version.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
0.46.0-RC3
1+
0.46.1-RC1

0 commit comments

Comments
 (0)