diff --git a/pkg/textparse/openmetricsparse.go b/pkg/textparse/openmetricsparse.go index 2d7b92150..4598ba306 100644 --- a/pkg/textparse/openmetricsparse.go +++ b/pkg/textparse/openmetricsparse.go @@ -11,7 +11,7 @@ // See the License for the specific language governing permissions and // limitations under the License. -//go:generate go get github.com/cznic/golex +//go:generate go get -u modernc.org/golex //go:generate golex -o=openmetricslex.l.go openmetricslex.l package textparse diff --git a/pkg/textparse/promparse.go b/pkg/textparse/promparse.go index 2b2cbdaba..b73889598 100644 --- a/pkg/textparse/promparse.go +++ b/pkg/textparse/promparse.go @@ -11,7 +11,7 @@ // See the License for the specific language governing permissions and // limitations under the License. -//go:generate go get github.com/cznic/golex +//go:generate go get -u modernc.org/golex //go:generate golex -o=promlex.l.go promlex.l package textparse