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

docsonnet go bin: Switch from pkger to embed #37

Closed

Conversation

yorinasub17
Copy link
Contributor

Fixes #35

This updates the static file embedding logic to use the builtin embed instead of pkger, which has the advantage of dynamically embedding without code generation. This means that there is no need to maintain a separate pkged.go file every time doc-util or load.libsonnet is updated, as the latest version is always embedded even when installing docsonnet with go install.

Side note: I am aware from reading the issue that the fate of the go binary is in the air. Personally, I like the docsonnet go binary as it makes for a very quick installation process and keeps the source jsonnet libraries "clean" by reducing the number of entrypoints. Regardless, thought it made sense to update it for others who run into issues trying to use it.

@yorinasub17 yorinasub17 changed the title Switch from pkger to embed docsonnet go bin: Switch from pkger to embed Dec 18, 2022
Copy link
Member

@Duologic Duologic left a comment

Choose a reason for hiding this comment

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

I can see how this improves the situation, I can recall using it in another project and it worked quite well.

@Duologic
Copy link
Member

Hmm, I see the docker pipeline fail, I assume the credentials used were from @sh0rez and he changed them now.

@Duologic
Copy link
Member

Now that we've switched to goreleaser, mind doing a rebase of this PR?

@yorinasub17
Copy link
Contributor Author

@Duologic Done!

Signed-off-by: Yoriyasu Yano <[email protected]>
@yorinasub17
Copy link
Contributor Author

Closing as superseded by #54

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.

Update embedded jsonnet code.
2 participants