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 v2-exec fails to create environment. #6479

Closed
phadej opened this issue Jan 14, 2020 · 2 comments
Closed

cabal v2-exec fails to create environment. #6479

phadej opened this issue Jan 14, 2020 · 2 comments

Comments

@phadej
Copy link
Collaborator

phadej commented Jan 14, 2020

[polinukli] /code/public-haskell/tree-diff master % cabal v2-exec env                       
Resolving dependencies...
/code/public-haskell/tree-diff/dist-newstyle/tmp/environment.-7050: createDirectory: does not exist (No such file or directory)
[polinukli] /code/public-haskell/tree-diff master % cabal --version
cabal-install version 3.0.1.0
compiled using version 3.0.1.0 of the Cabal library 
[polinukli] /code/public-haskell/tree-diff master % /opt/cabal/3.2/bin/cabal v2-exec env 
Resolving dependencies...
/code/public-haskell/tree-diff/dist-newstyle/tmp/environment.-7174: createDirectory: does not exist (No such file or directory)
@phadej phadej added this to the 3.0.1.0 milestone Jan 14, 2020
@fgaz
Copy link
Member

fgaz commented Jan 17, 2020

here the parent may not exist.
Solution: either we create it before calling withTempDirectory, or we modify withTempDirectory to do the equivalent of mkdir -p.
The first option is probably better. Look for other places where distTempDirectory is used to see how it's done

@phadej
Copy link
Collaborator Author

phadej commented Jan 22, 2020

In other places the distTempDirectory is explicitly created before calling to withTempDirectory, I'll go with that.

@phadej phadej closed this as completed in 67eca1b Jan 22, 2020
phadej added a commit that referenced this issue Jan 22, 2020
Resolve #6479: Create distTempDirectory in withTempEnvFile
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants