Skip to content
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

Feature: --only-locals flag #5272

Closed
snoyberg opened this issue Apr 22, 2020 · 1 comment
Closed

Feature: --only-locals flag #5272

snoyberg opened this issue Apr 22, 2020 · 1 comment
Assignees

Comments

@snoyberg
Copy link
Contributor

Motivation: on a number of projects, we use CI jobs where all snapshot dependencies are built and saved in a Docker image. This means that the CI job itself runs fairly quickly, only building local packages. However, if a new dependency is added or the build plan is changed, the CI job may end up building snapshot packages.

With --only-locals, we would be able to say "if the build plan involves building anything except a local package, then fail."

@axel-h
Copy link

axel-h commented Mar 1, 2021

With v2.5.1 there still see to be corner cases where this does not work

$ stack build --fast --only-locals
Exception while reading snapshot from https://raw.githubusercontent.com/commercialhaskell/stackage-snapshots/master/lts/9/21.yaml:
HttpExceptionRequest Request {
  host                 = "raw.githubusercontent.com"
  port                 = 443
  secure               = True
  requestHeaders       = [("User-Agent","Haskell pantry package")]
  path                 = "/commercialhaskell/stackage-snapshots/master/lts/9/21.yaml"
  queryString          = ""
  method               = "GET"
  proxy                = Nothing
  rawBody              = False
  redirectCount        = 10
  responseTimeout      = ResponseTimeoutDefault
  requestVersion       = HTTP/1.1
}

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

No branches or pull requests

2 participants