Skip to content

Use hackage security - #2940

Merged
snoyberg merged 2 commits into
masterfrom
use-hackage-security
Jan 27, 2017
Merged

snoyberg merged 2 commits into
masterfrom
use-hackage-security

Conversation

@snoyberg

Copy link
Copy Markdown
Contributor

Note: Documentation fixes for https://docs.haskellstack.org/en/stable/ should target the "stable" branch, not master.

Please include the following checklist in your PR:

  • Any changes that could be relevant to users have been recorded in the ChangeLog.md
  • The documentation has been updated, if necessary.

Normal usage of Stack will test this out plenty. I made this change because, once we switched from the Git index to HTTPS, updates became very slow, which I'm not happy with. As long as we're doing partial updates, may as well use hackage-security I suppose.

Since the hackage-security-http-client package isn't yet on Hackage, I inlined that module. Also, manually specified indices will be able to opt in or out of Hackage Security for downloads, so compatibility with existing non-HS indices will be retained.

I know the initial build will fail due to missing extra-deps. After that, I'm planning on using this myself a bit before merging. Review certainly welcome, this was far more complicated to get right than I would have ever expected.

@snoyberg
snoyberg force-pushed the use-hackage-security branch 2 times, most recently from 73380ae to 38e750e Compare January 20, 2017 10:27
@snoyberg
snoyberg force-pushed the use-hackage-security branch from 38e750e to 40b8bef Compare January 23, 2017 14:11
@snoyberg

Copy link
Copy Markdown
Contributor Author

I've been using this regularly for the past few days and haven't experienced any issues. Since I've been doing Stackage curation in that time, I've been very regularly running stack update, and my results have always matched up with the Travis job using the current version of Stack. I think this is safe to merge.

For discussion of bootstraping and the decision to embed Hackage
Security keys in the executable, see: haskell/hackage-security#181
@snoyberg
snoyberg force-pushed the use-hackage-security branch from bd5b2aa to 652c363 Compare January 25, 2017 12:23
Cannot yet turn on "require hashes" by default due to missing hashes,
see: haskell/hackage-security#183
@snoyberg
snoyberg force-pushed the use-hackage-security branch from dc42af7 to 49b5381 Compare January 27, 2017 07:23
@snoyberg
snoyberg merged commit 3c133bf into master Jan 27, 2017
@snoyberg
snoyberg deleted the use-hackage-security branch January 27, 2017 08:09
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant