-
Notifications
You must be signed in to change notification settings - Fork 841
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
Start using the pantry package #4254
Merged
Changes from all commits
Commits
Show all changes
249 commits
Select commit
Hold shift + click to select a range
e3b4cf8
Begin the move to Pantry
snoyberg 5379771
Move more types into the pantry subdir
snoyberg 7050741
Use Cabal types in pantry
snoyberg 0527a63
Implement getPackageVersions
snoyberg 79b6913
loadFromIndex
snoyberg 23972ae
Remove unneeded updateAllIndices wrapper
snoyberg bf6e2c5
Remove need for resolvePackagesAllowMissing
snoyberg 67cb34d
Silence overwhelming SQL logging
snoyberg acd0213
Remove unpackPackageIdents
snoyberg d7beab7
Drop need for resolvePackages
snoyberg 4d3c0fa
Implement the unpack command
snoyberg 7aecad8
Update changelog and close #4137
snoyberg 33ef253
Do an efficient incremental cache update
snoyberg 3cfea9a
More accurate log message
snoyberg 26dd4c3
Better retention of cabal file size
snoyberg aa9b6db
Calculate the Hackage tarball metadata
snoyberg d427696
Move around the duplicate update logic
snoyberg b8ce1e0
Start adding the Tree data types
snoyberg f1a3a97
Fix the 1024 null bytes, and clean up docs/naming
snoyberg f2990ea
Make it shallower
snoyberg f80a284
Prepare for archive code
snoyberg 8c9d41e
Bookkeeping around Hackage trees (revisions, ugh)
snoyberg 65e0ede
Loading trees from Hackage works
snoyberg 8ccbf05
Unpacking a tree works!
snoyberg c438a10
Archive caching
snoyberg 742a822
Start refactoring the PackageLocation stuff
snoyberg 9d50562
Remove the CabalLoader concept
snoyberg f276dee
Start moving PackageLocation into pantry, lots of stuff is b0rken
snoyberg 55ac92b
Move over to Cabal types
snoyberg db366f4
RawPackageLocation
snoyberg ebd3edf
Implement a few more undefineds, get it closer
snoyberg bb45bf6
Slightly clearer error messages
snoyberg b2bca1c
CPS transform things
snoyberg ff679ca
Shared database connection, not a pool
snoyberg 56aea74
Optimize a common cabal file lookup
snoyberg 48919bb
Fix Cabal's parser for package identifiers
qrilka 2a4ff3f
Fix some more undefineds/FIXMEs
snoyberg 3e378a7
Merge remote-tracking branch 'origin/master' into pantry
snoyberg af2a017
Clean unused imports
qrilka b9f2e78
More details on difference with Cabal in package identifier parsing
qrilka 221a373
Merge pull request #4175 from qrilka/pantry
snoyberg 2446c17
Merge branch 'pantry' of github.com:commercialhaskell/stack into pantry
snoyberg cec3a2e
Fix compilation from backed-out change
snoyberg 185f14a
Move RawPackageLocationOrPath into pantry
snoyberg 90142f9
More standardized OrPath data types
snoyberg 9977448
Thread OrPath through a bunch of places, drop an undefined
snoyberg 66d550b
Holy moly, stack build works on stack again!
snoyberg 6b483a0
Clean up the pantry types a bit
snoyberg a1482e0
Move more cabal and hpack logic into pantry
snoyberg adbb52d
All of the undefineds are in pantry now
snoyberg a895b32
Start to clean up the PSIndex mess, yay Pantry!
snoyberg 0e9b528
Get the Stack unit test suite running/passing again
snoyberg 40ce34d
Convert Stackage snapshots to new format
snoyberg b1ed081
More work on completing snapshots
snoyberg 8bf2425
Able to convert (at least some) LTSes
snoyberg 8d97405
traverseConcurrentlyWith
snoyberg 71f5e28
getHackageTarballKey
snoyberg 6f2d180
CRLF hack
snoyberg 70e811e
WIP towards getting snapshots working again
snoyberg 815bf42
It finally builds again!
snoyberg b7ff2c3
And remove an unneeded undefined
snoyberg ca1872f
Start curator work, make pantry a package
snoyberg 61f5246
Comment out convert-old-stackage
snoyberg cddc419
More work on fetching and validating archives
snoyberg 214cce8
Implement loading from url with caching in SQLite
qrilka 230952e
Fix default repo name
snoyberg 84641ee
Merge branch 'pantry' of https://github.com/qrilka/stack into pantry
snoyberg 7bcfec4
Treat the bs as a ByteString (cc @qrilka)
snoyberg 3a255ce
Compiling works again
snoyberg 58fa9b6
Write-up on #3922
snoyberg 6eb3004
Implement some more undefineds so we can build Stack with Stack
snoyberg aa4e1c1
Fix exception display
snoyberg 63138cb
Add missing other-module
snoyberg 519a06a
Merge remote-tracking branch 'origin/master' into pantry
snoyberg ac4e3ff
Merge remote-tracking branch 'origin/stable' into pantry
snoyberg 10b27cf
Add infer-license extra-dep
snoyberg b615c3f
Handle preferred-versions files from Hackage
snoyberg 2f64d8f
Fix warnings, implement missing patterns
snoyberg 8816aef
Cleaned up more warnings, doesn't compile
snoyberg aac3571
Clean up all warnings
snoyberg c3510b2
hlint suggestions
snoyberg 6d235e9
Resolve a bunch of FIXMEs
snoyberg 9cdee30
Tweak Travis for GHC 8.4.3
snoyberg b70ddd5
Remove invalid UNPACK pragmas (Version is now a sum type)
snoyberg 4447fee
Add TMP env var for AppVeyor
snoyberg 147116b
Get convert-old-stackage compiling
snoyberg 7be2b7e
Fix haddocks
snoyberg c6ad243
Ensure dir for SQLite database exists
snoyberg e6e1ba5
Use destroyAllResources
snoyberg 5f9fc50
Fix undefineds in convert-old-stackage.hs
snoyberg b7bb765
No blob key check as archive could contain outdated cabal file
qrilka 9ac504a
Merge pull request #4207 from qrilka/pantry
snoyberg 282c8bc
Simplify binary serialization of trees (no hexing hashes)
snoyberg 2f72898
Helper script to convert old Stackage snapshots
snoyberg e445576
Move stack.yaml up a level
snoyberg 7534592
Merge remote-tracking branch 'origin/master' into pantry
snoyberg 5b1de26
Pull repos
snoyberg 6f99841
gitignore for conversion
snoyberg c999ec4
Raw -> Unresolved renaming
qrilka ba1ed24
Curator can create snapshot files
snoyberg 2b067da
Ignore some temp files
snoyberg d67707b
Ready to unpack in curator
snoyberg 71e9c82
Curator: unpack and build (needs moar stack)
snoyberg c6968b5
Prev. PackageLocation got suffix Immutable, file paths - mutable
qrilka 2da7518
Add some missing grandfathered deps
snoyberg 589130c
Merge pull request #4219 from qrilka/pantry
snoyberg 3fb0976
Merge branch 'pantry' of github.com:commercialhaskell/stack into pantry
snoyberg 9a2c388
Fix compilation
snoyberg e924c78
Control whether we use preferred versions
snoyberg ee3d639
Stack understands the curator block
snoyberg 98a5253
More grandfathering
snoyberg 2694a95
Upper bound on scalendar
snoyberg 13c024f
Resolve multiple candidates from preprocessors (fixes #4076)
snoyberg e1a23c8
Another warning reduction like #4076
snoyberg c2f594e
Improve warning display
snoyberg c0d47ee
Defer loading local package file information
snoyberg cf85716
Give a little more information on dependency cycle failures
snoyberg 5283ff1
Add some workarounds for limitations in Stack
snoyberg 4f6c663
Get pantry test suite started
snoyberg 71c79e4
Get rid of a warning, make tests pass
snoyberg 050e06b
Implement WantedCompiler parsing
snoyberg 22c6464
Parsing a tree
snoyberg dcbcae1
Fix loading of ZIP files, add a test
snoyberg a4050a3
Tree serialization spec: run faster
snoyberg d722e09
Get Git repos working
snoyberg ed017c6
Mercurial support
snoyberg 8d13f15
Don't forget to change commits
snoyberg c0ac9ec
Add missing HasProcessContext constraint
snoyberg 72a58ef
Merge remote-tracking branch 'origin/stable' into pantry
snoyberg 25f3cbb
Fix some `Show` usages
snoyberg 3e4c5aa
Properly allow relative file paths to snapshots
snoyberg 5bc362a
Strip multiple leading dirs (handles ./ paths)
snoyberg 32cea4e
Delete leftover directories
snoyberg 60a3cad
Fix some hlint warnings
snoyberg b047761
Fix global hint stuff
snoyberg 3205408
Fix a bad change
snoyberg ceff380
packages cannot contain URLs
snoyberg d412911
More info on failure, more reliable runs
snoyberg 7a0666e
Add missing stack.yaml
snoyberg f402f5a
Add a missing space
snoyberg 444d094
Fix a few more integration tests
snoyberg 3ec63ce
Try disabling WAL and enabling foreign keys
snoyberg d08fafd
make-global-hints.hs
snoyberg aa58b56
Move global hints out of snapshots
snoyberg 22f85f4
Complete PackageIdentifierRevision as well
snoyberg cfb96c2
Merge remote-tracking branch 'origin/master' into pantry
snoyberg 45294dc
Fix an hlint warning
snoyberg 17e09b9
Sanity checks on cabal files
snoyberg 75e11e3
Revert to GHC 8.2/LTS-11, use a custom snapshot
snoyberg d863ab2
Travis: 8.2.2 for stack.yaml
snoyberg 6766c70
Merge remote-tracking branch 'origin/master' into pantry
snoyberg 9a0332a
Add a comment, remove a TODO
snoyberg 68b8a29
Implement Docker image tag logic
snoyberg eaeae10
Docker: copy entire pantry directory
snoyberg c2fff0f
Clean up a bunch of FIXMEs
snoyberg 314fff2
Handle trailing commas in ghc package modules
snoyberg 46f7ee7
Fix the integration test suites (at least locally)
snoyberg dae7e1e
Better error on too-new cabal spec
snoyberg ff05a84
Helper integration test suite scripts
snoyberg 31dbf96
Write-up on curator tool
snoyberg 97fa18c
configure-args comment
snoyberg 0657080
Correct PackageIdentifier->PackageName (fixes #4215)
snoyberg 2fdd3c3
Replace some show with displayC
snoyberg d51965a
Merge remote-tracking branch 'origin/master' into pantry
snoyberg 58d46fb
Remove dependency on Network.HTTP.StackClient
snoyberg b5acd51
Slim down Network.HTTP.StackClient
snoyberg 74f10c4
pantry: remove usage of Path.Find
snoyberg d56af9b
Make pantry a dependency of stack
snoyberg fecd986
Remove an unneeded import
snoyberg 77a5977
Start moving files around for hidden internals
snoyberg ba8895d
Expose less from pantry, much nicer SHA256 module
snoyberg 1a98bff
Use permissions code from directory
snoyberg 55f79cf
Fill in package metadata for pantry
snoyberg ec88727
Do warnings check in convert-old-stackage.hs
snoyberg 32b1b69
Implement a bunch of FIXMEs and replace errors in pantry
snoyberg edd6bc6
Resolve most FIXMEs
snoyberg 15ef88e
Remove a data constructor
snoyberg 79ce2ac
`stack freeze` command
qrilka 7b57b08
Turned unit tests into property tests
089e9e2
curator CLI
bergmark a6ece48
Merge pull request #4237 from bergmark/curator-cli
snoyberg 103d324
Merge pull request #4240 from NorfairKing/unit-to-property
snoyberg 56977c0
Merge remote-tracking branch 'origin/pantry' into pantry
snoyberg 6e84f11
Fix some warnings
snoyberg 4396664
Remove pantry dir copying code for Docker
snoyberg b920393
Merge branch 'master' into pantry
snoyberg 7ab87ec
Merge remote-tracking branch 'origin/master' into pantry
snoyberg 0615468
Update ChangeLog for pantry changes
snoyberg 46ef0cb
Remove build-constraints.yaml (way too big a diff!)
snoyberg 459e62a
Only update cache when needed
snoyberg 90859bf
Implement fuzzy name lookup logic
snoyberg 5bb1d30
Require SHA1 for completing repos (fixes #4218)
snoyberg 4d2283a
Begin cleaning up Pantry module docs
snoyberg 288131d
Pin revision to prevent test breakage
qrilka b108f02
More verbose and easy to understand output
qrilka 6e89c5d
Switch to Unresolved data type
snoyberg 230237e
Docs for stack freeze
qrilka eef0507
Fix curator compilation (thanks @qrilka)
snoyberg 238a9ee
Merge remote-tracking branch 'origin/pantry' into pantry
qrilka 2f2b751
New output format in tests
qrilka 6263e7e
Improve naming in Pantry.Storage
snoyberg d6dd593
Introduce the Package type
snoyberg 7f50951
Merge pull request #4220 from qrilka/pantry
snoyberg 9cad4a2
Fix a hash
snoyberg f053132
Fix some hlint warnings
snoyberg 90730be
Remove some TH usage
snoyberg 1c96444
Finish cleaning up and documenting the Pantry module
snoyberg 4f74f94
Print warnings as needed on second parse
snoyberg 3f4c212
Fix curator compilation
qrilka b802f4f
Remove the ignore-revision-mismatch stuff
snoyberg ae74950
Fix some refactoring bugs
snoyberg aec661b
Fix JSON serialization for archives
snoyberg 28e5927
Minor freeze UI improvements
snoyberg 228fcf0
Clean up YAML config docs for Pantry
snoyberg a5d0248
Add note to update architecture.md #4251
snoyberg 890f96d
Add note that GUIDE is out of date #4252
snoyberg 2cb6cb4
Fix a name conflict warning
snoyberg 8f65c1f
Remove the CRLF hack
snoyberg 94600af
Add note that Git repos are shared
snoyberg 903b5b8
Replaced displayC with monomorphic functions
qrilka a9ba308
Arguably better boolean blindness names
snoyberg 4992881
Merge pull request #4253 from commercialhaskell/pantry-remove-displayc
snoyberg d7154b7
Remove the convert-old-stackage stuff
snoyberg 09dde44
Fix build of curator
snoyberg 3e4eeba
Remove unneeded TODO (thanks @dbaynard)
snoyberg 658418a
Merge branch 'master' into pantry
snoyberg 80f6c07
Explain how to update frozen information (CC @dbaynard)
snoyberg 01f9e84
Merge in the stack freeze info
snoyberg aa670e6
Attempt to use PRAGMA busy_timeout
snoyberg 7e38e09
More reliable persistent-sqlite extra-dep
snoyberg fb6f819
Ugly, temporary hack for store build issues
snoyberg 3211dd5
Migrate some remains of code to use Cabal types/functions
qrilka 2b846ff
Check in pantry.cabal
snoyberg 784535e
Support symlinks to parent dir
snoyberg 7cfef74
Move parsing functions into pantry
qrilka ba15062
Remove unused pragmas
qrilka 0e1e10e
Add lower bound on hpack
snoyberg a52bacb
Normalize safely across Windows and Unix
snoyberg 0621362
Fix warnings
snoyberg c8b2031
parsePackageNameFromFilePath out of pantry, new pantryexceptions
qrilka 1479f77
More Windows path stuff
snoyberg 67f95cd
Merge branch 'remove-stack-types' of https://github.com/qrilka/stack …
snoyberg a1ddae6
Fix some warnings
snoyberg bcd33fa
Typo correction from @mihaimaruseac
snoyberg b80ac84
Include a fix for snoyberg/tar-conduit#21
snoyberg 3b9e296
Add support for location: back
snoyberg 966804b
Fix test suite broken by changes in freeze output
snoyberg 4fa1987
Use Gitlab build image that has Mercurial
snoyberg f1169e3
Merge remote-tracking branch 'origin/master' into pantry
snoyberg 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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -27,4 +27,3 @@ tags | |
/etc/scripts/stack-scripts.cabal | ||
.hspec-failures | ||
better-cache/ | ||
subs/ |
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
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
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.
Bump to version 2?
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'm OK with such a version bump for this set of changes, especially if 2.0 ends up including #3922 and Backpack. @borsboom thoughts?