Skip to content

--ignore-project creates "Invalid package ID" error #6942

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

Closed
jwaldmann opened this issue Jul 6, 2020 · 1 comment
Closed

--ignore-project creates "Invalid package ID" error #6942

jwaldmann opened this issue Jul 6, 2020 · 1 comment
Labels
cabal-install: cmd/install re: --ignore-project Concerning flag `--ignore-project`

Comments

@jwaldmann
Copy link

git clone https://github.com/tidalcycles/Tidal
cd Tidal
git checkout 1.6.1
cabal install --lib --ignore-project

will result in

cabal: Invalid package ID: .

The repo contains a file cabal.project with contents

packages: ./ tidal-parse

Just running

cabal install --lib

will produce some error triggered by constraints in tidal-parse/tidal-parse.cabal - that I want to avoid by not building it.

I thought that --ignore-project tells cabal to ignore cabal.project. (although -? says "Ignore local project configuration" and does not mention the file name).

System information

  • Fedora GNU/Linux 5.7.6-201.fc32.x86_64
cabal --version
cabal-install version 3.2.0.0
compiled using version 3.2.0.0 of the Cabal library 
ghc --version
The Glorious Glasgow Haskell Compilation System, version 8.10.1
@jneira
Copy link
Member

jneira commented Apr 11, 2022

So i am gonna close this one in favour of #8094, more recent and including the < 3.4 behaviour

@jneira jneira closed this as completed Apr 11, 2022
@andreasabel andreasabel added cabal-install: cmd/install re: --ignore-project Concerning flag `--ignore-project` labels Aug 20, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
cabal-install: cmd/install re: --ignore-project Concerning flag `--ignore-project`
Projects
None yet
Development

No branches or pull requests

3 participants