Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP

Loading…

cabal sandbox paths default to not being relative paths #1490

Open
cartazio opened this Issue · 10 comments

8 participants

@cartazio

if i do

mkdir test
cd test
cabal sandbox init
cabal install void # or any other package
cd ..
mkdir test2
mv test test2/
cd test2/test
cabal install data-reify

i get

carter test2/test » cabal install data-reify
cabal: No sandbox exists at /Users/carter/test/.cabal-sandbox

this suggests to me that the default paths in the cabal sandbox config (for the data that is local to the sandbox) should be relative paths, because its very unintuitive that moving a sandbox breaks the config files

@cartazio

hrmmm. seems like theres no support for relative paths currently in cabal, I tried changing the sandbox config file to use relative paths and cabal errored out

@23Skidoo
Collaborator

Yes, that's a known limitation.

@23Skidoo 23Skidoo was assigned
@tonymorris

I would like to be able to point to paths in ./cabal.config using $pwd/blah/blah

@cartazio

@tonymorris where $pwd is the sandbox root directory?

@tonymorris

Yes, the directory containing cabal.config.

@dmjio

+1

@aloiscochard

+1

I faced that multiple time and that would be great to avoid all the manual editing...

@ndemonner

+1

A $pwd var would suffice.

@krauthaufen

+1
Would make it easier to commit sandbox files and use them on different machines.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Something went wrong with that request. Please try again.