Skip to content

removing windows partial new line token from the version#728

Merged
simonl2002 merged 5 commits intomasterfrom
fix-version-windows
May 5, 2023
Merged

removing windows partial new line token from the version#728
simonl2002 merged 5 commits intomasterfrom
fix-version-windows

Conversation

@nassor
Copy link
Contributor

@nassor nassor commented May 5, 2023

Description of change

Fixes #727

Type of change

  • Bug fix

nassor and others added 4 commits May 5, 2023 08:49
This fixes the path dependent issue where the CLI output was not getting
trimmed on the code path were an error didn't occur.
Copy link
Contributor

@jayjayjpg jayjayjpg left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This reads great, thank you for the super quick fix and triage! ✨

Comment on lines 285 to 287
if match == nil || len(match) < 2 {
return "", fmt.Errorf("output is formatted unexpectedly")
}
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I didn't make these changes but it feels like given what's being done in version.go GetVersion function, it feels like this should NOT actually be returning an error. Instead we should properly handle both forms of the response output here rather than relying on the caller to clean things up.

@simonl2002 simonl2002 merged commit da6e04f into master May 5, 2023
@simonl2002 simonl2002 deleted the fix-version-windows branch May 5, 2023 17:30
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Invalid header field value "1.7.0\r" for key Meroxa-Cli-App-Version;"

5 participants