Skip to content
Merged
Show file tree
Hide file tree
Changes from 4 commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .github/workflows/go.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,4 +7,4 @@ on:

jobs:
go:
uses: openconfig/common-ci/.github/workflows/basic_go.yml@c2294c3c86c90e75e58c24a40d6f7f3364bbae9d
uses: openconfig/common-ci/.github/workflows/basic_go.yml@2dd20d500dc65de2927c44877398fdd141ee09ba
10 changes: 5 additions & 5 deletions go.mod
Original file line number Diff line number Diff line change
Expand Up @@ -2,13 +2,13 @@ module github.com/openconfig/pattern-regex-tests

go 1.23.0

toolchain go1.24.2
toolchain go1.25.1

require (
github.com/golang/glog v1.2.4
github.com/google/go-cmp v0.6.0
github.com/openconfig/goyang v0.2.4
github.com/openconfig/ygot v0.9.0
github.com/golang/glog v1.2.5
github.com/google/go-cmp v0.7.0
github.com/openconfig/goyang v1.6.3
github.com/openconfig/ygot v0.34.0
)

require (
Expand Down
4 changes: 2 additions & 2 deletions gotests/patterncheck/patterncheck.go
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ import (

log "github.com/golang/glog"

yangutil "github.com/openconfig/goyang/pkg/util"
yangentry "github.com/openconfig/goyang/pkg/yangentry"
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

don't need to rename the package since it's already called yangentry

"github.com/openconfig/goyang/pkg/yang"
"github.com/openconfig/ygot/util"
)
Expand All @@ -37,7 +37,7 @@ var (
// test cases specified for them. It ensures that the regexp compiles as a
// POSIX regular expression according to the OpenConfig style guide.
func CheckRegexps(yangfiles, paths []string) ([]string, error) {
yangE, errs := yangutil.ProcessModules(yangfiles, paths)
yangE, errs := yangentry.Parse(yangfiles, paths)
if len(errs) != 0 {
return nil, fmt.Errorf("could not parse modules: %v", errs)
}
Expand Down