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

Fix copying plugin archives while installing a plugin on Windows #144

Merged
merged 2 commits into from
Jan 19, 2018

Conversation

itchyny
Copy link
Contributor

@itchyny itchyny commented Jan 19, 2018

In the current implementation, mkr plugin install mackerel-plugin-sample on Windows installs the plugin archive (~.zip) in the bin directory. We cannot distinguish the plugin executable and archive by file permission on Windows.

@itchyny itchyny self-assigned this Jan 19, 2018
@itchyny itchyny changed the title Ignore plugin archives on installing plugins Fix copying plugin archives while installing a plugin on Windows Jan 19, 2018
@Songmu
Copy link
Contributor

Songmu commented Jan 19, 2018

Please ignore .tgz similarly.

if strings.HasSuffix(artifactFile, ".tar.gz") || strings.HasSuffix(artifactFile, ".tgz") {

@itchyny
Copy link
Contributor Author

itchyny commented Jan 19, 2018

Thanks for a catch, I added .tgz.

@Songmu
Copy link
Contributor

Songmu commented Jan 19, 2018

LGTM

@itchyny
Copy link
Contributor Author

itchyny commented Jan 19, 2018

Thank you.

@itchyny itchyny merged commit 313f0e1 into master Jan 19, 2018
@itchyny itchyny deleted the fix-windows-plugin-zip branch January 19, 2018 07:15
@syou6162 syou6162 mentioned this pull request Jan 23, 2018
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.

None yet

2 participants