Skip to content
This repository has been archived by the owner on Nov 9, 2020. It is now read-only.

Modified Makefile so plugin build under HGFS #1182

Merged
merged 1 commit into from Apr 22, 2017
Merged

Conversation

msterin
Copy link
Contributor

@msterin msterin commented Apr 20, 2017

When the repo is checked out under VMWare own HGFS on a guest (Linux) , and the Host is WIndows,
the plugin build fails because HGFS in this combination does not support symlinks
and 'docker plugin export` command uses it.

This PR moves the actual plugin files manipulation under /tmp so the build succeeds for anyone who
(like myself) runs linux guest in VMWare Workstation on WIndows , and shares repo dir over HGFS

A side effect of this PR is that ./plugin folder is not polluted with build-only managed plugin files

Copy link
Contributor

@govint govint left a comment

Choose a reason for hiding this comment

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

Looks good.

Copy link
Contributor

@shuklanirdesh82 shuklanirdesh82 left a comment

Choose a reason for hiding this comment

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

LGTM!

Just a minor concern.

plugin/Makefile Outdated
docker plugin create $(PLUGIN_NAME):$(PLUGIN_TAG) .

docker plugin create $(PLUGIN_NAME):$(PLUGIN_TAG) $(TMP_LOC)
@rm -rf $(TMP_LOC)
Copy link
Contributor

Choose a reason for hiding this comment

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

nit: L89 takes care this .. can it be redundant and removed? Please explain if I am missing something here.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

yes, it's a missed leftover. Will remove. Thanks !

@msterin msterin force-pushed the build_hgfs.msterin branch 5 times, most recently from 6af12f1 to 910abcc Compare April 22, 2017 07:03
When the repo is checked out under VMWare own HGFS on a guest (Linux) , and the Host is WIndows,
the plugin build fails because HGFS in this combination does not support symlinks
and 'docker plugin export` command uses it.

This PR moves the actual plugin files manipulation under /tmp so the build succeeds for anyone who
(like myself) runs linux guest in VMWare Workstation on WIndows , and shares repo dir over HGFS
@msterin msterin merged commit 71c477b into master Apr 22, 2017
@msterin msterin deleted the build_hgfs.msterin branch April 22, 2017 20:17
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

4 participants