dhall-lang / dhall-haskell

Maintainable configuration files
https://dhall-lang.org/
BSD 3-Clause "New" or "Revised" License
908 stars 211 forks source link

Please report symlink contents for `Error: Missing file` #2528

Open jsoref opened 11 months ago

jsoref commented 11 months ago

A user reported:

↳ 

Error: Missing file 

8│                     

As it happened, the symlink included an absolute path to a location on a computer and was committed to git and was then used on a VM that didn't have that same path.

Has the error said:

Error: Could not resolve symlink (`foo-link` contents: `/Absolute/Path/ToFile.extension`)

They'd have immediately understood the problem.

jsoref commented 11 months ago

See also #561

Gabriella439 commented 7 months ago

Hmmm, I just tried to reproduce this and I don't get the same error. I did this:

$ touch foo
$ ln --symbolic foo bar
$ rm foo
$ dhall <<< './bar'
dhall: 
↳ ./bar

Error: Missing file ./bar

1│ ./bar