You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
- go-version no longer throws a runtime error on invalid versions, so we
can drop our custom error catch version detection function
NOTE
What is this: we had issues when we first started analyzing the mcr version in
the configuration, as some invalid values would produce a runtime error. The
error came right out of hashicorps go-version library, so our only option
was to wrap the function and catch any runtime errors.
We also included a unit test which validated that a proper error was returned
on the invalid version value, to confirm in unit testing that the runtime
error was caught
Why isn't it needed anymore: I ran the go-version function recently without the
wrapper and found that the runtime exception no longer occurs, meaning that
our wrapper is no longer needed. The unit test now runs without exception
without the wrapper.
Signed-off-by: James Nesbitt <[email protected]>
0 commit comments