-
Notifications
You must be signed in to change notification settings - Fork 700
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
[WIP] Use the directory package to create new-install symlinks #5684
Closed
Closed
Changes from 1 commit
Commits
Show all changes
7 commits
Select commit
Hold shift + click to select a range
d8bae51
Use the directory package to create new-install symlinks
YellPika 01f193a
Loosen directory lower bound
YellPika cf67537
Install directory when bootstrapping
YellPika c7ce4ca
Merge remote-tracking branch 'upstream/master'
YellPika 8a65104
Merge remote-tracking branch 'upstream/master'
YellPika 685868a
Merge remote-tracking branch 'upstream/master'
YellPika a8cf922
Merge remote-tracking branch 'upstream/master'
YellPika File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
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.
That's a fairly recent
directory
version (it only started getting bundled w/ GHC 8.6); can we make this conditional onif os(windows)
?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 understand the problem. Are you worried about the stability of recent versions of
directory
?This change uses the
createFileLink
function, which was added indirectory-1.3.1.0
, so the lower bound will need to be raised anyways. Is1.3.1.0
an acceptable lower bound? One potential downside is that the behaviour ofnew-install
on Windows will differ depending on which version ofdirectory
was used to compilecabal-install
.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 think the concern is mostly support, does
directory-1.3.1.0
support the same versions of GHC thatcabal
supports, if not it can't be unconditionally used.This is quite normal, and just means the distro needs to be built with an up-to-date compiler/cabal. Long filenames support is another thing that already depends on which version of GHC is used.
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.
Well, we have all those
*.Compat.*
modules for a reason... ;-)See
So I'd strongly suggest to try to follow the prior-art from those compat modules to avoid requiring such a bleeding edge
directory
version