-
Notifications
You must be signed in to change notification settings - Fork 9
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Fix #42: use patches for revisions #51
Conversation
cfbd1ac
to
52296a4
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
looks plausible now!
52296a4
to
53a2471
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks good 👍
Doesn't seem to work
I tested this PR against CHaP and it looks like there are some issues.
@yvan-sraka can you have a look? |
fd5a51d
to
9ecb7da
Compare
I encountered another set of issues:
I'm struggling to determine the best strategy to fix this, knowing that using temporary files is unlikely to work… I was considering constructing files, e.g., |
I'm a bit confused: in that example, have you modified CHaP? At least in current CHaP that file exists, so it's weird that shake would say that it doesn't. |
My answer was confusing: I didn't test it against |
@yvan-sraka how are you going with this? |
77ab848
to
a0187da
Compare
I just returned from my time-off yesterday, and I was able to merge the changes with the |
Marking this as draft |
@yvan-sraka are you still interested in finishing this? |
a0187da
to
1a307b9
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I rebased it on upstream and make the code type check, but the logic feels wrong …
app/Foliage/CmdBuild.hs
Outdated
@@ -111,20 +110,20 @@ buildAction | |||
( \PreparedPackageVersion {pkgId, pkgTimestamp, cabalFilePath, originalCabalFilePath, cabalFileRevisions} -> do | |||
-- original cabal file, with its timestamp (if specified) | |||
copyFileChanged originalCabalFilePath (outputDir </> "package" </> prettyShow pkgId </> "revision" </> "0" <.> "cabal") | |||
cf <- prepareIndexPkgCabal pkgId (fromMaybe currentTime pkgTimestamp) originalCabalFilePath | |||
cf <- prepareIndexPkgCabal pkgId (Timestamped (fromMaybe currentTime pkgTimestamp) originalCabalFilePath) [] -- FIXME !! |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I don't recall correctly how I should use prepareIndexPkgCabal
…
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
IIRC we discussed this privately.
1d23379
to
d56b79b
Compare
Co-authored-by: Michael Peyton Jones <[email protected]>
d56b79b
to
09df34e
Compare
Is there some fundamental problem with this approach, or do you just don't have time to work on it ATM? @yvan-sraka I would like to try to pick this up in case of the latter. |
Yes! It's unlikely I'll have time to work on it before leaving IOG at the end of the month, feel free to give it a try :) |
No description provided.