Skip to content

Commit

Permalink
ignore build-info in docs-gen reading forge artifacts
Browse files Browse the repository at this point in the history
  • Loading branch information
zeroXbrock committed Jun 21, 2024
1 parent 434e7c0 commit da7ff46
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions tools/docs-gen/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -259,6 +259,13 @@ func readForgeArtifacts(path string) ([]*artifact, error) {
if d.IsDir() {
return nil
}

// ignore if parent directory doesn't end w/ ".sol"
parentDir := filepath.Base(filepath.Dir(path))
if !strings.HasSuffix(parentDir, ".sol") {
return nil
}

ext := filepath.Ext(d.Name())
if ext != ".json" {
return nil
Expand Down

0 comments on commit da7ff46

Please sign in to comment.