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

Remove deprecated pkger in favor of native embed #218

Merged
merged 2 commits into from
Dec 19, 2023

Conversation

kevinbarbour
Copy link
Contributor

Changes

Remove pkger usage and use the native go embed instead.

Why Are Changes Being Made

pkger is archived in favor of embed and go install is no longer supported. For some reason even when I installed pkger manually and ran the update & build from the Makefile I wasn't getting the embedded files in the binary, so figured I'd migrate this to embed instead of troubleshooting pkger.

This does require moving of the migrations to internal and adding the config dir within internal as well since embed can't pull from a parent directory. Can move these around a bit if there is a better suggestion.

pkger is archived in favor of embed and `go install` is no longer
supported
Copy link
Member

@adamdecaf adamdecaf left a comment

Choose a reason for hiding this comment

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

Thanks. I had this on my list for too long.

@kevinbarbour
Copy link
Contributor Author

I updated this to what I think is a cleaner way of doing it and keeps the config and migrations in their original directories under the root.

Copy link
Member

@adamdecaf adamdecaf left a comment

Choose a reason for hiding this comment

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

Thanks. This is what we do internally as well.

@adamdecaf adamdecaf merged commit 57c2807 into moov-io:master Dec 19, 2023
6 checks passed
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