Skip to content

Commit 9d4963c

Browse files
authored
Merge pull request #3 from nikhilc1527/main
find files in gopath instead of configdir
2 parents 4da47c9 + 77d4bc8 commit 9d4963c

File tree

1 file changed

+6
-7
lines changed

1 file changed

+6
-7
lines changed

cmd/goose.go

Lines changed: 6 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -58,16 +58,15 @@ var gooseCmd = &cobra.Command{
5858
if err != nil {
5959
return fmt.Errorf("error parsing config: %w", err)
6060
}
61-
configDir := path.Dir(configPath)
6261
var wg sync.WaitGroup
6362
var gooseErr, proofgenErr error
6463
wg.Add(2)
6564
go func() {
66-
gooseErr = runGooseCmd(localPath, "goose",
67-
append([]string{
68-
"-out", path.Join(config.RocqRoot, "code"),
69-
"-dir", configDir,
70-
}, config.PkgPatterns...))
65+
args := append([]string{
66+
"-out", path.Join(config.RocqRoot, "code"),
67+
"-dir", config.GoPath,
68+
}, config.PkgPatterns...)
69+
gooseErr = runGooseCmd(localPath, "goose", args)
7170
wg.Done()
7271
}()
7372
go func() {
@@ -76,7 +75,7 @@ var gooseCmd = &cobra.Command{
7675
"-out", path.Join(config.RocqRoot, "generatedproof"),
7776
// directory with .v.toml files
7877
"-configdir", path.Join(config.RocqRoot, "code"),
79-
"-dir", configDir,
78+
"-dir", config.GoPath,
8079
}, config.PkgPatterns...))
8180
wg.Done()
8281
}()

0 commit comments

Comments
 (0)