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

refactor: change plugin/sample package to sample #136

Merged
merged 1 commit into from
Oct 6, 2022
Merged

refactor: change plugin/sample package to sample #136

merged 1 commit into from
Oct 6, 2022

Conversation

scop
Copy link
Contributor

@scop scop commented Oct 5, 2022

To make the conventional go build ./... and go install ./... work. With the sample in the main package currently:

$ go build ./...
# github.com/daveshanley/vacuum/plugin/sample
runtime.main_main·f: function main is undeclared in the main package

Closes #135.

Warning: I didn't do any homework whatsoever with regards to vacuum plugins, so this might not be the right thing to do. If it's not, maybe it provokes another, proper fix :)

To make the conventional `go build ./...` and `go install ./...`
work. With the sample in the `main` package currently:

```shellsession
$ go build ./...
runtime.main_main·f: function main is undeclared in the main package
```

Closes #135
@daveshanley daveshanley added the release/patch Patch / non-breaking release label Oct 6, 2022
@daveshanley
Copy link
Owner

There is no problem changing the package names, those plugins are designed specifically as samples anyway and are not to be used (as long as they compile, it's all good).

I tested these changes and found no problems anywhere.

Thank you for digging into this and for your contribution!

@daveshanley daveshanley merged commit 3836117 into daveshanley:main Oct 6, 2022
@scop scop deleted the refactor/plugin-sample-package branch October 11, 2022 19:12
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
release/patch Patch / non-breaking release
Projects
None yet
Development

Successfully merging this pull request may close these issues.

RFE: make go install ./... work
2 participants