moov-io / achgateway

Payment gateway enabling automated ACH operations in a distributed and fault tolerant way.
https://moov-io.github.io/achgateway/
Apache License 2.0
52 stars 19 forks source link

Remove deprecated pkger in favor of native embed #218

Closed kevinbarbour closed 6 months ago

kevinbarbour commented 6 months ago

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.

kevinbarbour commented 6 months ago

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.