Skip to content

Commit

Permalink
bzlmod: track of ignored dependencies
Browse files Browse the repository at this point in the history
Now we also track ignored dependencies
  • Loading branch information
manuelnaranjo committed Jan 4, 2024
1 parent 80c9ad0 commit 8e110d3
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
1 change: 1 addition & 0 deletions cmd/rpmtree.go
Original file line number Diff line number Diff line change
Expand Up @@ -208,6 +208,7 @@ func loadBzlModLockFile() (*bazel.BzlModLockFile, error) {
Name: rpmtreeopts.name,
BuildFile: rpmtreeopts.buildfile,
Arch: rpmtreeopts.arch,
ForceIgnoreWithDependencies: rpmtreeopts.forceIgnoreRegex,
}, nil
}

Expand Down
4 changes: 3 additions & 1 deletion pkg/bazel/bzlmod.go
Original file line number Diff line number Diff line change
Expand Up @@ -46,6 +46,7 @@ type LockFileArgs struct {
Path string;
Bazeldnf string;
GeneratedVisibility []string;
ForceIgnoreWithDependencies []string;
}

func getStringValue(arg *build.AssignExpr) (string, bool) {
Expand Down Expand Up @@ -332,11 +333,12 @@ RepoFiles []string `json:"repo-files"`
Arch string `json:"arch"`
Required []string `json:"required"`
Version int `json:"version"`
ForceIgnoreWithDependencies []string `json:"force-ignore-with-dependencies"`

Rpms []BzlModLockFileRPM `json:"rpms"`
}

const CURRENT_LOCK_FILE_VERSION = 1
const CURRENT_LOCK_FILE_VERSION = 2

func LoadBzlModLockFile(path string) (*BzlModLockFile, error) {
_, err := os.Stat(path)
Expand Down

0 comments on commit 8e110d3

Please sign in to comment.