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

Compile fails silently when src dir is not writable #51

Open
phile314 opened this issue Mar 8, 2015 · 1 comment
Open

Compile fails silently when src dir is not writable #51

phile314 opened this issue Mar 8, 2015 · 1 comment

Comments

@phile314
Copy link
Member

phile314 commented Mar 8, 2015

Compile fails silently when src dir is not writable

I have some code which can end up in a directory which is not writable ( Haskell sources in Agdas cabal data files installed system-wide ).

Minimal example:

layout:

src/        (not writable)
src/Test.hs   
out/        (writable)

If the source directory is not writable, no compilation takes place and no error message is printed either. Example commands:

$ chmod -R -w src
$ uhc --odir=out --compile-only src/Test.hs
$

After giving write permissions on src, it works:

$ chmod +w src/
$ uhc --odir=out --compile-only src/Test.hs
[1/1] Compiling Haskell                  Test                   (src/Test.hs)
$

Preferrably uhc should work even if it has not write permissions in the source folders when using --odir. Alternatively, it should print an error message or panic.

(I can work around the problem by copying the Haskell sources to a temporary directory with write permissions, if necessary.)

@atzedijkstra
Copy link
Member

Should be ok now, that is, the dest dir is checked for writability, not the src dir

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants