Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Conversation

@charrsky
Copy link
Collaborator

@charrsky charrsky commented Aug 21, 2022

Might have slipped up with denoting versions in the comments -- will be glad to hear remarks!

@charrsky charrsky requested a review from chshersh as a code owner August 21, 2022 10:08
@charrsky charrsky self-assigned this Aug 21, 2022
@charrsky charrsky changed the title Resolves #33 [#33] Split the 'ToolCheckResult' constructor Aug 21, 2022
Copy link
Owner

@chshersh chshersh left a comment

Choose a reason for hiding this comment

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

That's a great start 👏🏻

Let's also change the definition of CliEnvError to store ToolCheckError inside instead of ToolCheckResult:

iris/src/Iris/Env.hs

Lines 121 to 123 in e352b65

newtype CliEnvError
-- | @since 0.0.0.0
= CliEnvToolError ToolCheckResult

src/Iris/Tool.hs Outdated
data ToolCheckResult
{- |
@since 0.0.0.1
Copy link
Owner

Choose a reason for hiding this comment

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

I prefer to use @since x.x.x.x for new unreleased changes. I'll update CONTRIBUTING guide, mentioning this workflow. But the motivation is that the new version is not known at the moment of introducing new change. So we can write x.x.x.x and later replace all such places with a single shell command.

Suggested change
@since 0.0.0.1
@since x.x.x.x

In this case, it's a breaking change, so the new Iris version already will be 0.1.0.0. Still, it's better to follow some practices 😌

@chshersh chshersh added the enhancement New feature or request label Aug 21, 2022
Copy link
Owner

@chshersh chshersh left a comment

Choose a reason for hiding this comment

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

Thanks, looks great! 👍🏻

@chshersh chshersh merged commit 0b9c50d into main Aug 21, 2022
@chshersh chshersh deleted the issue-33-toolcheck branch August 21, 2022 14:47
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

enhancement New feature or request

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants