From 61be1084fb17bc4bf8c31acf543dfa8220c7f815 Mon Sep 17 00:00:00 2001 From: Jesse Portnoy Date: Mon, 17 Jul 2023 23:05:40 +0100 Subject: [PATCH] . --- .github/workflows/go.yml | 2 +- examples/go.mod | 1 - examples/syncat.go | 2 +- 3 files changed, 2 insertions(+), 3 deletions(-) diff --git a/.github/workflows/go.yml b/.github/workflows/go.yml index 8ff6f50..6c47a2e 100644 --- a/.github/workflows/go.yml +++ b/.github/workflows/go.yml @@ -22,7 +22,7 @@ jobs: go-version: '1.20' - name: Build - run: cd examples && go build syncat.go + run: cd examples && go mod tidy && go build syncat.go - name: Test run: go test -v diff --git a/examples/go.mod b/examples/go.mod index 3df1f26..24ba34c 100644 --- a/examples/go.mod +++ b/examples/go.mod @@ -5,7 +5,6 @@ go 1.19 require ( github.com/fatih/color v1.15.0 github.com/jessp01/gohighlight v0.21.1-1 - github.com/jessp01/highlight v0.0.0-20230716160321-8969d1f05a45 ) require ( diff --git a/examples/syncat.go b/examples/syncat.go index df37828..0a371b0 100644 --- a/examples/syncat.go +++ b/examples/syncat.go @@ -24,7 +24,7 @@ func main() { if gopath == "" { syn_dir = "/etc/highlight" } else { - syn_dir = gopath + "/src/github.com/jessp01/highlight/syntax_files" + syn_dir = gopath + "/src/github.com/jessp01/gohighlight/syntax_files" } syn_dir = os.Getenv("SYNDIR")