Skip to content

Compile fails silently when src dir is not writable #51

@phile314

Description

@phile314

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.)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions