Skip to content

Commit

Permalink
Fixing code gen
Browse files Browse the repository at this point in the history
  • Loading branch information
clarkmcc committed Nov 23, 2023
1 parent e9ce6e1 commit 139ff3b
Show file tree
Hide file tree
Showing 3 changed files with 13 additions and 3 deletions.
3 changes: 0 additions & 3 deletions internal/example/certs.go
Original file line number Diff line number Diff line change
Expand Up @@ -6,9 +6,6 @@ import (
_ "embed"
)

// Requires mkcert to be installed (https://github.com/FiloSottile/mkcert).
//go:generate mkcert example.com

//go:embed example.com.pem
var certificate []byte

Expand Down
7 changes: 7 additions & 0 deletions internal/example/certs_gen.go
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
//go:build !dev

package example

//todo: figure out tls
//go:generate touch example.com.pem
//go:generate touch example.com-key.pem
6 changes: 6 additions & 0 deletions internal/example/certs_gen_dev.go
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
//go:build dev

package example

// Requires mkcert to be installed (https://github.com/FiloSottile/mkcert).
//go:generate mkcert example.com

0 comments on commit 139ff3b

Please sign in to comment.