-
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
Minimal test suite #81
Conversation
- Add support for urls with file: schema; both absolute (file:/path) and relative (file:path) paths are supported. - Log curl invocation in case of failure - Rename fetchRemoteAsset to fetchURL - Add verbosity flag - Bump GHC to 9.4.7 - Bump flake inputs
I'd be inclined to create them on the fly, although that's more code.
I definitely think running them in a tmpdir is a good idea, but yeah, having a flag to keep the directory is super useful if things fail. |
Co-authored-by: Michael Peyton Jones <[email protected]>
- Move sourceUrl to Foliage.Meta.packageVersionSourceToUri
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.
LGTM :)
* Minimal test suite - Add support for urls with file: schema; both absolute (file:/path) and relative (file:path) paths are supported. - Log curl invocation in case of failure - Rename fetchRemoteAsset to fetchURL - Add verbosity flag - Bump GHC to 9.4.7 - Bump flake inputs * Apply suggestions from code review Co-authored-by: Michael Peyton Jones <[email protected]> * Add short option '-v' for '--verbosity' * Whitespace * Add comment explaining why the dot * Rename withFixture to inTemporaryDirectoryWithFixture * Small refactor of PrepareSource * Rename TarballSource to URISource - Move sourceUrl to Foliage.Meta.packageVersionSourceToUri * Simplify inTemporaryDirectoryWithFixture * Document tar and cp flags * Reformat --------- Co-authored-by: Michael Peyton Jones <[email protected]>
Closes: #7
Add support for urls with file: schema; both absolute (file:/path) and
relative (file:path) paths are supported.
Log curl invocation in case of failure
Rename fetchRemoteAsset to fetchURL
Add verbosity flag
Bump GHC to 9.4.7
Bump flake inputs
Feedback is welcome.
Some design issues:
tests/fixtures/simple/tarballs
along with their unpacked sources but it's not a great solution.withFixtures
creates a temporary directory and symlinks the fixture files. This allows running the tests in parallel but that temporary gets wiped when the test finish. Maybe it's better to keep it around?TODO
Accept a file:// url that points to a cabal file, foliage will make a source distribution from the package in that folder.It's a good idea but there are too many design decision involved. Leaving this for another time.