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

Skip to content

Conversation

@charrsky
Copy link
Collaborator

Uses this fork for colourista, and also some hspec versions are specified in extra-deps

@charrsky charrsky requested a review from chshersh as a code owner July 26, 2022 10:11
@chshersh chshersh changed the title Issue 42 support stack [#42] Support stack Jul 26, 2022
@chshersh chshersh added the CI label Jul 26, 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.

Looks neat! 👍🏻

I see that CI pass which is great. And I have a few suggestions to refine the stack configuration 🧹

ghc: ["9.2.3"]

steps:
- uses: actions/checkout@v2
Copy link
Owner

Choose a reason for hiding this comment

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

The latest version of this action is v3 so let's use it

Suggested change
- uses: actions/checkout@v2
- uses: actions/checkout@v3

steps:
- uses: actions/checkout@v2

- uses: haskell/actions/[email protected]
Copy link
Owner

Choose a reason for hiding this comment

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

Let's use the same version of Haskell action as for cabal jobs

Suggested change
- uses: haskell/actions/setup@v1.2
- uses: haskell/actions/setup@v2.0

ghc-version: ${{ matrix.ghc }}
stack-version: ${{ matrix.stack }}

- uses: actions/cache@v2
Copy link
Owner

Choose a reason for hiding this comment

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

The same as checkout, we can update it. Dependabot can update later but let's update straight away because we know newer versions already 🙂

Suggested change
- uses: actions/cache@v2
- uses: actions/cache@v3

stack.yaml Outdated
Comment on lines 6 to 8
- hspec-2.10.0@sha256:2d1dc53e361998f002497b7222fdb700cc540b2aaf880e2619a0b5d54abb74e5,1712
- hspec-core-2.10.0@sha256:a5d7d3e7bbcf42e8def370d86ab08252821be6fb9d00dddb3c484973d7a6e801,6617
- hspec-discover-2.10.0@sha256:517d0892217539969c199f9cc30065db7bcd68ff5512095e4f94ff8ef35d1313,2166
Copy link
Owner

Choose a reason for hiding this comment

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

I see that this snapshot contains hspec* libraries but with the version 2.9.7

Let's remove these 3 lines from stack.yaml and relax the lower bound for hspec in our test suite to allow version 2.9.7

iris/iris.cabal

Line 127 in e79fdc2

, hspec ^>= 2.10

I expect that our project should still build and work with the lower version of hspec but this way we'll reduce the extra-deps burden for stack

@charrsky
Copy link
Collaborator Author

Done! Changed versions of the actions in CI and relaxed the hspec version constraints.

@charrsky charrsky requested a review from chshersh July 26, 2022 14:41
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.

Looks great now 👏🏻

@chshersh chshersh merged commit 846a31f into chshersh:main Jul 26, 2022
@charrsky charrsky deleted the issue-42-support-stack branch July 26, 2022 21:41
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants