-
Notifications
You must be signed in to change notification settings - Fork 134
Add output folder sharing and --no-share-output flag to build
#422
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
Merged
Merged
Changes from all commits
Commits
Show all changes
8 commits
Select commit
Hold shift + click to select a range
df42c30
Add --sharedOutput flag to Spago build command
danieljharvey 2440600
Update changelog and docs
danieljharvey 2c377dc
Name changes and check for output args
danieljharvey a8065fa
Update docs
danieljharvey e9fe063
Add additional test for peace of mind
danieljharvey a96e168
Find output path for tests
danieljharvey fa6700b
Find output folder for tests
danieljharvey 0850ec0
Fix test path and tidying
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 hidden or 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 hidden or 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 hidden or 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 hidden or 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 hidden or 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
Oops, something went wrong.
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.
This looks good! However I wonder how brittle it is in the end.
Just for inspiration I went looking what Dhall itself actually does with the graph we use here, and turns out it's being used to print
dotgraphs.Here's the implementation, and here's a result for our monorepo:

So it looks like we have all the info available to find out which one is the "rootmost" import for all the cases (while here we'd get it wrong if the "main
packages.dhallis not the highest in the file hierarchy). So looking at the graph (which we can build because we get all the parent-child relationships in thegraph) a better heuristic than the one I proposed before seems to be "pick the topmostpackages.dhallwhich is not a remote import, an importas Location, oras Text"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.
Ahh right - sounds like we have everything we need to do this nicely. Will give this a smash.
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.
Does this implementation work?
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 would have liked something more like "is this file importing this other one" rather than "is this directory shorter", but let's go with this for now