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

CB-8757 - Resolve symlinks in order to avoid relative path issues #212

Closed

Conversation

mbektchiev
Copy link
Contributor

Android projects residing in symlinked directories have problems similar to those listen in https://issues.apache.org/jira/browse/CB-8757 for iOS. I am proposing a better fix which is platform-agnostic and normalizes the paths as early as possible.

@@ -89,9 +90,12 @@ plugman.commands = {
plugman.owner(cli_opts.argv.remain);
},
'install' : function(cli_opts) {
resolvePathsInArgs(cli_opts);
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

CLI code doesn't pass through here either I don't think. Within install.js is where you should do it I think.

@mbektchiev mbektchiev force-pushed the bektchiev/resolve-symlinks-in-paths branch from ed4ec7f to ef93888 Compare May 5, 2015 15:37
@mbektchiev
Copy link
Contributor Author

@agrieve I moved the fixes to install.js and uninstall.js. Do you think it's OK now?

@@ -228,3 +228,4 @@ plugman.commands = {
};

module.exports = plugman;

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

looks good. just revert this unchanged file and fix the one failing test.

@mbektchiev mbektchiev force-pushed the bektchiev/resolve-symlinks-in-paths branch 2 times, most recently from 81be347 to 107f70c Compare May 5, 2015 19:41
@mbektchiev mbektchiev force-pushed the bektchiev/resolve-symlinks-in-paths branch from 107f70c to 0e85615 Compare May 5, 2015 19:42
@mbektchiev
Copy link
Contributor Author

Done. I hadn't noticed the failing test, because it's failing only on Mac, but I hadn't run the tests on a Mac. 🍀

@asfgit asfgit closed this in 7f38e61 May 5, 2015
@mbektchiev mbektchiev deleted the bektchiev/resolve-symlinks-in-paths branch September 4, 2015 14:03
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

Successfully merging this pull request may close these issues.

2 participants