- Name of tar file of local cache of package index is not hard coded.
withPantryConfig
andwithPantryConfig'
require the location of global hints to be specified.GlobalHintsLocation
,defaultGlobalHintsLocation
,globalHintsLocation
andparseGlobalHintsLocation
added.withPantryConfig'
now requires the specification of whether or not Hpack's--force
flag is to be applied.- Expose
hpackForceL
, a lens to view or modify theForce
(Hpack) of aPantryConfig
.
- Support
ansi-terminal-1.0.2
. - Bug fix: On Windows,
loadPackageRaw
supports repositories with submodules, as intended.
- Depend on
aeson-warning-parser-0.1.1
.
- Add error S-628 (
LocalNoArchiveFileFound
). - Depend on
rio-prettyprint-0.1.7.0
.
defaultCasaRepoPrefix
references https://casa.stackage.org, instead of https://casa.fpcomplete.com.- Depend on
crypton
instead ofcryptonite
. - Depend on
tar-conduit-0.4.0
, which will tolerate long filenames and directory names in archives created bygit archive
.
- Expose module
Pantry.SQLite
.
- Remove module
Pantry.Internal.AesonExtended
and depend onaeson-warning-parser
package. - Remove module
Pantry.Internal.Companion
and depend oncompanion
package. - Remove module
Pantry.Internal.StaticBytes
and depend onstatic-bytes
package. - Remove module
Pantry.Internal
, previously exposed only for testing. - Update Hackage bootstrap root key set.
- Expose
withPantryConfig'
, which allows for optional use of Casa.NoCasaConfig
is now a data constructor ofPantryException
. withRepo
, in the case of Git, will now, if necessary, fetch the specific commit. (For example, GitHub repositories include the commits of unmerged pull requests but these are not fetched when the repository is cloned.)
- Add error S-395 (
NoLocalPackageDirFound
).
- On Windows, avoid fatal
tar: Cannot connect to C: resolve failed
bug when archiving repository submodules.
PantryException
is now an instance of theText.PrettyPrint.Leijen.Extended.Pretty
class (provided by therio-prettyprint
package).- Module
Pantry
now exportsFuzzyResults
,Mismatch
andSafeFilePath
(andmkSafeFilePath
), used in data constructors ofPantryException
.
- Support
hpack-0.35.1
, and prettierHpackLibraryException
error messages.
findOrGenerateCabalFile
,loadCabalFilePath
,loadCabalFile
andloadCabalFileRaw
no longer assume that the program name used by Hpack (the library) is "stack", and take a new initial argument of typeMaybe Text
to specify the desired program name. The default is "hpack".
- To support the Haskell Foundation's
Haskell Error Index initiative, all Pantry
error messages generated by Pantry itself begin with an unique code in the
form
[S-nnn]
, wherennn
is a three-digit number.
- Change
defaultHackageSecurityConfig
such that fieldhscIgnoreExpiry = True
, to be consistent with the defaults of theWithJSONWarnings HackageSecurityConfig
instance ofFromJSON
.
- Rename
HackageSecurityConfig
asPackageIndexConfig
,defaultHackageSecurityConfig
asdefaultPackageIndexConfig
, andpcHackageSecurity
field ofPantryConfig
aspcPackageIndex
. - Expose new
HackageSecurityConfig
anddefaultHackageSecurityConfig
. The former represents Hackage Security configurations (only - no download prefix). - Change the data constructor of
PackageIndexConfig
to have fields for a download prefix (typeText
) and of typeHackageSecurityConfig
. - The
WithJSONWarnings PackageIndexConfig
instance ofFromJSON
now assigns default valuedefaultHackageSecurityConfig
if thehackage-security
key is absent from the JSON object. - Expose
defaultDownloadPrefix
, for the official Hackage server.
- Expose
loadAndCompleteSnapshotRaw'
andloadAndCompleteSnapshot'
, which allow the toggling of the debug output of the raw snapshot layer. See #55. - Support GHC 9.4.
- Remove operational and mirror keys from bootstrap key set. See #53.
- Support
Cabal-3.6.0.0
.
- Support
aeson-2.0.0.0
.
- improve and expose
fetchRepos
/fetchReposRaw
.
- Support for GHC 9.0. See #39.
- Support for
Cabal-3.4.0.0
. See #38.
- Support
persistent-2.13.0.0
. See #35.
- Fall back to BSD tar when type cannot be detected. See #33.
- Switch back to
hackage.haskell.org
. See #30. - Pass through basic auth credentials specified in URLs. See #32.
- Allow building with
persistent-2.11.0.0
. See #28.
- Handle case where tree exists in cache by blobs are missing. See #27.
- Skip a test for issue #26.
- Fix to allow multiple relative path of symlink.
- Catch all exceptions from Casa calls and recover.
- Make the location of LTS/Nightly snapshots configurable.
- Removed errant log message.
- Add a deprecation warning when using a repo/archive without a Cabal file, see Stack issue #5210.
- Do not include repo/archive dependencies which do not include Cabal files in lock files.
- Remove some no longer used functions.
- Upgrade to
Cabal-3.0.0.0
.
Bug fixes:
- Don't compare the hashes of Cabal files. Addresses bugs such as Stack issue
#5045. Data type
changes: removed the
pmCabal
andrpmCabal
fields.
Bug fixes:
- Module mapping insertions into the database are now atomic. Previously, if you SIGTERMed at the wrong time while running a script, you could end up with an inconsistent database state.
Other changes:
- Support building with
persistent-template-2.7.0
.
Changes since 0.1.0.0
Bug fixes:
- Fix to allow dependencies on specific versions of local git repositories. See Stack pull request #4862.
Behavior changes:
- By default, do not perform expiry checks in Hackage Security. See Stack issue #4928.
Other changes:
- Rename
pantry-tmp
package back topantry
, now that we have gained maintainership (which had been used by someone else for a candidate-only test that made it look like the name was free but prevented uploading a real package).
- Initial release.