Closed stp-ip closed 6 years ago
So I think we should generate templates.go file using packr
command in the reposeed and add a method to get the box from the file and use it in both reposeed and reposeed-server. We also should add packr clean
and packr
commands in the reposeed's Makefile.
Sounds like a sane approach. That will already reduce the amount of duplication quite a bit and at the same time enhance the reposeed side of things.
Probably best to let reposeed use packr to pack up the templates and reposeed-server just imports this. Happy to discuss the pros and cons.