Skip to content
This repository was archived by the owner on Sep 10, 2025. It is now read-only.

Proof of concept using go-embed#53

Merged
skx merged 7 commits intomasterfrom
go-embed
Feb 18, 2021
Merged

Proof of concept using go-embed#53
skx merged 7 commits intomasterfrom
go-embed

Conversation

@skx
Copy link
Copy Markdown
Owner

@skx skx commented Oct 31, 2020

Rather than embedding our template into our binary using implant this pull-request instead uses the new go-embed system:

This required rebuilding go from source (took five minutes!):

Once done I used the following repository for reference:

Seems to work, but we'll hold off merging this unless/until we have go 1.16.x released because requiring a source build is a pain.

Rather than embedding our template into our binary using
`implant` instead use the new go-embed system:

* golang/go#41191
* https://go.googlesource.com/proposal/+/master/design/draft-embed.md

This required rebuilding go from source (took five minutes!):

* https://golang.org/doc/install/source

Once done I used the following repository for reference:

* https://github.com/mattn/go-embed-example

Seems to work, but we'll hold off merging this unless/until
we have go 1.16.x released because requiring a source build
is a pain.
@skx skx self-assigned this Oct 31, 2020
@skx skx added the enhancement New feature or request label Oct 31, 2020
@skx
Copy link
Copy Markdown
Owner Author

skx commented Dec 18, 2020

Confirmed this builds/works on the newly released 1.16 beta-release:

$ go version
go version go1.16beta1 linux/amd64

@skx skx merged commit fa34954 into master Feb 18, 2021
@skx skx deleted the go-embed branch February 18, 2021 06:56
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

enhancement New feature or request

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant