Skip to content

Commit

Permalink
Update grammar compiler to use Go 1.20 (github-linguist#6296)
Browse files Browse the repository at this point in the history
* Use Go 1.20 for grammar compiler

* Add Go workspace file

This makes it easier to dev the compiler in VSCode from the repo's base dir
  • Loading branch information
lildude authored Feb 27, 2023
1 parent b80b69c commit c4c03fc
Show file tree
Hide file tree
Showing 3 changed files with 16 additions and 6 deletions.
3 changes: 3 additions & 0 deletions go.work
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
go 1.20

use ./tools/grammars
2 changes: 1 addition & 1 deletion tools/grammars/Dockerfile
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
FROM golang:1.16
FROM golang:1.20

WORKDIR /go/src/github.com/github/linguist/tools/grammars

Expand Down
17 changes: 12 additions & 5 deletions tools/grammars/go.mod
Original file line number Diff line number Diff line change
@@ -1,16 +1,23 @@
module github.com/github/linguist/tools/grammars

go 1.16
go 1.20

require (
github.com/fatih/color v1.12.0 // indirect
github.com/golang/protobuf v0.0.0-20171113180720-1e59b77b52bf
github.com/groob/plist v0.0.0-20171013152701-7b367e0aa692
github.com/mattn/go-runewidth v0.0.2 // indirect
github.com/mitchellh/mapstructure v0.0.0-20171017171808-06020f85339e
github.com/urfave/cli/v2 v2.3.0
golang.org/x/sync v0.0.0-20210220032951-036812b2e83c // indirect
gopkg.in/check.v1 v1.0.0-20201130134442-10cb98267c6c // indirect
gopkg.in/cheggaaa/pb.v1 v1.0.18
gopkg.in/yaml.v2 v2.2.8
)

require (
github.com/cpuguy83/go-md2man/v2 v2.0.0-20190314233015-f79a8a8ca69d // indirect
github.com/fatih/color v1.12.0 // indirect
github.com/mattn/go-colorable v0.1.8 // indirect
github.com/mattn/go-runewidth v0.0.2 // indirect
github.com/russross/blackfriday/v2 v2.0.1 // indirect
github.com/shurcooL/sanitized_anchor_name v1.0.0 // indirect
golang.org/x/sync v0.0.0-20210220032951-036812b2e83c // indirect
gopkg.in/check.v1 v1.0.0-20201130134442-10cb98267c6c // indirect
)

0 comments on commit c4c03fc

Please sign in to comment.