Skip to content

Commit 9092134

Browse files
committed
Fix two small issues
1 parent e2440d6 commit 9092134

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

internal/codegen/process/gen.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,7 @@ func (r Runner) Generate(req *plugin.CodeGenRequest) (*plugin.CodeGenResponse, e
5353
cmd := exec.CommandContext(ctx, path)
5454
cmd.Stdin = bytes.NewReader(stdin)
5555
cmd.Env = []string{
56-
"SQLC_VERSION=foo",
56+
fmt.Sprintf("SQLC_VERSION=%s", req.SqlcVersion),
5757
}
5858

5959
out, err := cmd.Output()

internal/config/v_two.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ import (
1010

1111
func v2ParseConfig(rd io.Reader) (Config, error) {
1212
dec := yaml.NewDecoder(rd)
13-
// dec.KnownFields(true)
13+
dec.KnownFields(true)
1414
var conf Config
1515
if err := dec.Decode(&conf); err != nil {
1616
return conf, err

0 commit comments

Comments
 (0)