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

Create directory before push to avoid permission issue #439

Merged
merged 2 commits into from
Apr 4, 2019

Conversation

dpgraham
Copy link
Contributor

@dpgraham dpgraham commented Apr 3, 2019

pushFile isn't working on some later versions of Android SDK.

Was getting error remote secure_mkdirs failed: Operation not permitted. Workaround is to create the directory first using adb shell mkdir before pushing the file. That directory will have the correct permissions.

(another issue that had this problem: bazelbuild/examples#77)

@mykola-mokhnach
Copy link
Contributor

Please update the unit tests

@@ -966,6 +966,7 @@ methods.rimraf = async function rimraf (path) {
* options.
*/
methods.push = async function push (localPath, remotePath, opts) {
await this.mkdir(path.dirname(remotePath));
Copy link
Contributor

Choose a reason for hiding this comment

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

path.posix.dirname

@dpgraham dpgraham merged commit 3496f5d into master Apr 4, 2019
@dpgraham dpgraham deleted the dpgraham-mkdir-adb-fix branch April 4, 2019 16:17
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