Skip to content

Feature: --only-locals flag #5272

Closed
Closed

Description

@snoyberg

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."

Activity

  1. self-assigned this
    on Apr 22, 2020
  2. added 2 commits that reference this issue on Apr 22, 2020
    a54c549
    556543d
  3. axel-h commented on Mar 1, 2021

    @axel-h

    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

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions