Skip to content
This repository has been archived by the owner on Oct 22, 2023. It is now read-only.

RFC: remove realpath in symlink_artifacts #945

Merged
merged 1 commit into from
Oct 22, 2019
Merged

Conversation

pro-wh
Copy link
Member

@pro-wh pro-wh commented Oct 18, 2019

symlink_artifacts is a script that we'd normally run when first setting up a checkout, before the first successful make invocation. In that state, you wouldn't have a target/debug directory yet, so realpath's requirement "all but the last component must exist" wouldn't be satisfied.

The subsequent work in symlink_artifacts, as the name suggests, is to create a symbolic link, so I think the links would still work. At runtime, the links will be followed to target/debug, and symlinks making up that path would further be resolved. This might even be nice in its own way, so that you could change target/debug without rerunning make symlink-artifacts.

I'm collecting developers' opinions on removing this realpath call. Please comment if this would break something you do.

@pro-wh pro-wh requested a review from kostko October 18, 2019 19:47
@pro-wh
Copy link
Member Author

pro-wh commented Oct 18, 2019

oh duh, this breaks it if you use a relative OASIS_CORE_SRC_PATH

Co-Authored-By: Peter Gilbert <pgilbert@oasislabs.com>
@pro-wh pro-wh force-pushed the pro-wh/bugfix/realpath branch from 6b92291 to 76e247f Compare October 22, 2019 00:49
@pro-wh pro-wh merged commit 56d13d9 into master Oct 22, 2019
@pro-wh pro-wh deleted the pro-wh/bugfix/realpath branch October 22, 2019 18:31
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants