question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Relative path to the build directory is treated like absolute

See original GitHub issue

When using the command line: python manage.py build report.views.RenderView --build-dir ./build bakery tries to create the top level directory /build and fails because of permissions. fs.errors.PermissionDenied: permission denied mkdir: ./build: No such file or directory

It should instead create it in the current directory because there is a dot in front.

Is this by design?

It is not something that one cannot get around, but when using singularity and some workflow systems (nextflow), using absolute paths may become messy, as you’re working with isolated directories.

Issue Analytics

  • State:open
  • Created 5 years ago
  • Comments:5 (3 by maintainers)

github_iconTop GitHub Comments

1reaction
palewirecommented, Dec 5, 2018

@ClaudiuCreanga, would you be interested in developing a patch to solve this problem?

0reactions
ClaudiuCreangacommented, Sep 4, 2018

I would think these:

/directory
/directory/directory

~/
~/directory

./
./directory

../
../directory
../../directory

a symlink directory

Can’t think of anything else.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Relative path to the build directory is treated like absolute · Issue ...
When using the command line: python manage.py build report.views.RenderView --build-dir ./build bakery tries to create the top level directory /build and ...
Read more >
Relative and absolute paths, in the file system and on the web ...
If the path is built starting from the system root, it is called absolute. · If the path is built starting from the...
Read more >
Paths explained: Absolute, relative, UNC, and URL—Help
A path is a slash-separated list of directory names followed by either a directory name or a file name. A directory is the...
Read more >
Convert relative path to absolute path or the cmake command ...
What is the way to convert the relative path set in INPUT_DIR variable to the absolute path that would equally work for out...
Read more >
243170 – Relative include paths should be relative to source file
Markus, it appears that relative path is treated now (after your patch) only as from the source file's base folder. However, it should...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found