diff --git a/RELEASE_NOTES.md b/RELEASE_NOTES.md index d1912168..444c0d2e 100644 --- a/RELEASE_NOTES.md +++ b/RELEASE_NOTES.md @@ -1,5 +1,23 @@ # Nyx Release Notes +## 2.3.5 + +This release is available at [this link](https://github.com/mooltiverse/nyx/releases/tag/2.3.5). + +### Upgrade instructions + +There are no actions to take for backward compatibility. + +### New features and improvements + +There are no new features or improvements in this release. + +### Fixed issues + +This release: + +* fixes a bug in the command line version that caused a segment violation error when running the `clean` command when no previous state is found and so the current version hasn't been initialized yet ([#217](https://github.com/mooltiverse/nyx/issues/217)) + ## 2.3.4 This release is available at [this link](https://github.com/mooltiverse/nyx/releases/tag/2.3.4). diff --git a/modules/go/nyx/state/state.go b/modules/go/nyx/state/state.go index c4204d3d..b9e30bf5 100644 --- a/modules/go/nyx/state/state.go +++ b/modules/go/nyx/state/state.go @@ -950,11 +950,15 @@ func (s *State) Summary() (string, error) { } fmt.Fprintf(&buf, "timestamp = %d\n", *timestamp) - version, err := s.GetVersion() - if err != nil { - return "", err + if s.HasVersion() { + version, err := s.GetVersion() + if err != nil { + return "", err + } + fmt.Fprintf(&buf, "current version = %s\n", *version) + } else { + fmt.Fprintf(&buf, "current version = %s\n", "") } - fmt.Fprintf(&buf, "current version = %s\n", *version) releaseScope, err := s.GetReleaseScope() if err != nil {