Skip to content

Not able to install from binary #899

@andrybicio

Description

@andrybicio
  • This is a bug report

My OS:

  • Ubuntu 20.04LTS in WSL2 (Windows 10)
$  stack ghc -- --version
The Glorious Glasgow Haskell Compilation System, version 9.0.2

I wanted to compile and install hadolint on my machine, via the instructions provided in the README.

git clone https://github.com/hadolint/hadolint \
  && cd hadolint \
  && stack install

However, the last command (i.e., stack install) returns:

   Error parsing targets: The specified targets matched no packages.
   Perhaps you need to run 'stack init'?

Doing stack init as suggested, leads to:

Looking for .cabal or package.yaml files to use to init the project.
Using cabal packages:
- ./

(OMITTED)

* Partially matches https://raw.githubusercontent.com/commercialhaskell/stackage-snapshots/master/lts/3/22.yaml
    HsYAML not found
        - hadolint requires >=0
    ShellCheck not found
        - hadolint requires >=0.8.0
    colourista not found
        - hadolint requires >=0
    deepseq version 1.4.1.1 found
        - hadolint requires >=1.4.4 && <1.5
    directory version 1.2.2.0 found
        - hadolint requires >=1.3.0
    gitrev version 1.1.0 found
        - hadolint requires >=1.3.1
    hspec version 2.1.10 found
        - hadolint requires >=2.8.3
    ilist not found
        - hadolint requires >=0
    language-docker not found
        - hadolint requires >=11.0.0 && <12
    megaparsec not found
        - hadolint requires >=9.0.0
    optparse-applicative version 0.11.0.2 found
        - hadolint requires >=0.14.0
    parsec version 3.1.9 found
        - hadolint requires >=3.1.14
    prettyprinter not found
        - hadolint requires >=1.7.0
    Using package flags:
        - hadolint: FlagName "static" = True

Selected resolver: https://raw.githubusercontent.com/commercialhaskell/stackage-snapshots/master/nightly/2022/11/8.yaml
Resolver 'https://raw.githubusercontent.com/commercialhaskell/stackage-snapshots/master/nightly/2022/11/8.yaml' does not have all the packages to match your requirements.
    colourista not found
        - hadolint requires >=0
    Using package flags:
        - hadolint: FlagName "static" = True

This may be resolved by:
    - Using '--omit-packages' to exclude mismatching package(s).
    - Using '--resolver' to specify a matching snapshot/resolver

Where the OMITTED part, to my opinion, refers to looking at several `.yaml file in different locations and checking that none of them contains all the packages to match my requirements,

Metadata

Metadata

Assignees

No one assigned

    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