Skip to content

Replaced go-bindata with go1.16's embed feature #52

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

Open
wants to merge 2 commits into
base: golang
Choose a base branch
from

Conversation

mixcode
Copy link

@mixcode mixcode commented May 12, 2021

Go 1.16 introduced a language built-in file embedding feature, 'go embed'.
This patch replaces the use of go-bindata with go-embed regarding the systray icon.
By this change, the 'go generate' stage could be removed from the build process; hence the package would be directly installable with 'go install' command.

@mixcode
Copy link
Author

mixcode commented May 12, 2021

Hi, I am the submitter of this pull request.

I can see the azure-pipeline CI check failures.
I presume that azure-pipelines.yml have to be updated to solve the CI check error, but I think that is out of this patch's intended scope, so I decided not to touch the settings.

@benpye
Copy link
Owner

benpye commented May 12, 2021

Hey - thanks for the PR!

I'll try and figure out the build failure, the image should have Go 1.16 but it's not the default. Once that's fixed this PR looks good to merge.

@mixcode mixcode changed the title Replaced go-bindata with go1.6's embed feature Replaced go-bindata with go1.16's embed feature May 12, 2021
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