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

cabal install does not accept relative dirs in --store-dir (but cabal build does) #7760

Closed
jneira opened this issue Oct 18, 2021 · 3 comments
Labels
cabal-install: cmd/install re: store-dir On local nix store (option `--store-dir`) type: bug

Comments

@jneira
Copy link
Member

jneira commented Oct 18, 2021

Describe the bug
You can use relative dirs in --store-dir for cabal build but no for cabal install

To Reproduce
Steps to reproduce the behavior:

$ cabal --store-dir=./relative v2-install 

actual log

D:\ws\haskell\cabal-test>cabal --store-dir .\sr install --builddir dist2
Wrote tarball sdist to
D:\ws\haskell\cabal-test\dist2\sdist\cabal-test-0.1.0.0.tar.gz
Resolving dependencies...
Build profile: -w ghc-8.6.5 -O1
In order, the following will be built (use -v for more details):
 - say-0.1.0.1 (lib) (requires build)
 - cabal-test-0.1.0.0 (lib) (requires build)
 - cabal-test-0.1.0.0 (exe:cabal-test) (requires build)
Configuring library for say-0.1.0.1..
cabal-3.6.2.0.exe: expected an absolute directory name for --prefix:
.\sr\ghc-8.6.5\say-0.1.0.1-f56dd8dcb828e676e2fe979752cedce7d5e3ea47

Expected behavior
cabal install should accept relative dirs in --store-dir like cabal build

System information

  • windows
  • cabal-3.6.2.0, ghc versions: any

Additional context

@fgaz
Copy link
Member

fgaz commented Oct 22, 2021

Could be related to #6977

@andreasabel andreasabel added the re: store-dir On local nix store (option `--store-dir`) label Nov 11, 2021
@andreasabel
Copy link
Member

Looks like I duplicated your issue in #7812.

@jneira
Copy link
Member Author

jneira commented Nov 12, 2021

Duplicate of #7812

@jneira jneira marked this as a duplicate of #7812 Nov 12, 2021
@jneira jneira closed this as completed Nov 12, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
cabal-install: cmd/install re: store-dir On local nix store (option `--store-dir`) type: bug
Projects
None yet
Development

No branches or pull requests

3 participants