-
Notifications
You must be signed in to change notification settings - Fork 4
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
add create full program, generate-fast (#303)
* add create full program, generate-fast Signed-off-by: Sarah Funkhouser <[email protected]> * add env var to disable cache if wanted, move install to tools.go Signed-off-by: Sarah Funkhouser <[email protected]> * cleanup generate Signed-off-by: Sarah Funkhouser <[email protected]> * use fork Signed-off-by: Sarah Funkhouser <[email protected]> * use fork Signed-off-by: Sarah Funkhouser <[email protected]> * remove builder line from dockerfile Signed-off-by: Sarah Funkhouser <[email protected]> * fixup Signed-off-by: Sarah Funkhouser <[email protected]> * fixup the generate Signed-off-by: Sarah Funkhouser <[email protected]> --------- Signed-off-by: Sarah Funkhouser <[email protected]>
- Loading branch information
1 parent
317b923
commit 18e23bf
Showing
20 changed files
with
1,886 additions
and
45 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -27,4 +27,11 @@ repos: | |
entry: npx [email protected] --write=true | ||
language: node | ||
files: 'query/.*\.graphql$' | ||
|
||
- repo: local | ||
hooks: | ||
- id: generate | ||
name: Run Go Generate | ||
description: This hook runs go generate on the project | ||
entry: go-generate-fast ./... | ||
language: golang | ||
files: \.(go|graphql|tmpl)$ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,3 @@ | ||
FROM golang:1.23.4 AS builder | ||
|
||
FROM gcr.io/distroless/static:nonroot | ||
|
||
# `nonroot` coming from distroless | ||
|
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
package main | ||
|
||
//go:generate_input internal/ent/entc.go internal/ent/schema/* internal/ent/mixin/* internal/ent/templates/* | ||
//go:generate_output internal/ent/generated/* | ||
//go:generate go run ./internal/ent/entc.go |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
package main | ||
|
||
//go:generate_input internal/graphapi/generate/generate.go gqlgen.yml github.com/theopenlane/core/internal/ent/generated/* schema/* | ||
//go:generate_output internal/graphapi/* pkg/openlaneclient/models.go | ||
//go:generate go run ./internal/graphapi/generate/generate.go | ||
|
||
//go:generate_input gen_schema.go internal/graphapi/gen_server.go | ||
//go:generate_output schema.graphql | ||
//go:generate go run ./gen_schema.go | ||
|
||
//go:generate_input query/* schema/* gqlgenc.yml | ||
//go:generate_output pkg/openlaneclient/graphqlclient.go | ||
//go:generate go run github.com/Yamashou/gqlgenc generate --configdir schema |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.