Skip to content

Templ generate for dependencies #861

Answered by joerdav
mattd-cg asked this question in Q&A
Discussion options

You must be logged in to vote

Hi, thanks for the question. Personally I haven't considered this, I always commit my generated code, as is best practice in general for go modules.

I have been thinking of this and haven't thought of a good solution for you, as the go module system doesn't really support extra build steps just for deps.

In short I think you would be taking on a lot of complexity just to keep generated files out of your repo.

Replies: 2 comments 6 replies

Comment options

You must be logged in to vote
1 reply
@mattd-cg
Comment options

Answer selected by mattd-cg
Comment options

You must be logged in to vote
5 replies
@a-h
Comment options

@jtom38
Comment options

@a-h
Comment options

@jtom38
Comment options

@jtom38
Comment options

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
4 participants