Skip to content
This repository was archived by the owner on Oct 7, 2020. It is now read-only.

Use sha instead revision for hsimport and other fixes #1694

Merged
merged 4 commits into from
Mar 12, 2020
Merged

Conversation

jneira
Copy link
Member

@jneira jneira commented Mar 12, 2020

@jneira jneira requested a review from fendor March 12, 2020 06:31
@jneira
Copy link
Member Author

jneira commented Mar 12, 2020

There is a unit test failing due to the version bump to 1.2, weird that it was not triggered before 🤔

@jneira
Copy link
Member Author

jneira commented Mar 12, 2020

Fixed unit test with f6ba5ed (cc @gdziadkiewicz )

@gdziadkiewicz
Copy link
Contributor

Sorry for the problem :( and thanks for the cc, I appreciate the opportunity to learn how to do things better :)

@jneira
Copy link
Member Author

jneira commented Mar 12, 2020

@gdziadkiewicz dont worry, your contributions have been great and that is a minor detail, only want to show you just in case you have not used the Paths_* magic module before.

@jneira
Copy link
Member Author

jneira commented Mar 12, 2020

The macos-installhs-cabal azure job failed cause brew installs ghc-8.8.3 by default but we dont support it yet and there is no stack-8.8.3.yaml

@fendor
Copy link
Collaborator

fendor commented Mar 12, 2020

Nice catch, @jneira!

@jneira jneira changed the title Use sha instead revision for hsimport Use sha instead revision for hsimport and other fixes Mar 12, 2020
@fendor fendor merged commit b32ff3a into master Mar 12, 2020
@jneira jneira deleted the hsimport-sha branch March 12, 2020 11:58
@infinisil
Copy link
Contributor

infinisil commented May 12, 2020

Oh! I'm pretty sure that the problem here was that @rev1 is the wrong syntax, it should be @rev:1, as documented here.

I looked at the pantry source code (which is what parses these fields), and it seems to just use the latest revision for @rev1 (aka it couldn't parse it): https://github.com/commercialhaskell/pantry/blob/603fea5f4cb812b08edc74cd9e1178fa76309f55/src/Pantry/Types.hs#L769-L785

There's another instance of this in master, introduced in 0bdf8cc. I'll make a PR to fix this (-> #1770)

infinisil added a commit to infinisil/haskell-ide-engine that referenced this pull request May 12, 2020
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Unable to build on darwin 10.14.5: haskell-src-exts-1.22.0 from stack configuration does not match >=1.18.0 && <1.22
4 participants