Skip to content

Commit

Permalink
Remove GOPATH
Browse files Browse the repository at this point in the history
xxx

Signed-off-by: Kazuyoshi Kato <[email protected]>
  • Loading branch information
kzys committed Aug 12, 2023
1 parent 7e123b2 commit 714ce84
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 6 deletions.
3 changes: 0 additions & 3 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,6 @@ jobs:
- name: Setup environment
shell: bash
run: |
echo "GOPATH=${{ github.workspace }}" >> $GITHUB_ENV
echo "${{ github.workspace }}/bin" >> $GITHUB_PATH
- name: Check out code
Expand Down Expand Up @@ -69,7 +68,6 @@ jobs:
- name: Setup environment
shell: bash
run: |
echo "GOPATH=${{ github.workspace }}" >> $GITHUB_ENV
echo "${{ github.workspace }}/bin" >> $GITHUB_PATH
- name: Check out code
Expand Down Expand Up @@ -118,7 +116,6 @@ jobs:
- name: Setup environment
shell: bash
run: |
echo "GOPATH=${{ github.workspace }}" >> $GITHUB_ENV
echo "${{ github.workspace }}/bin" >> $GITHUB_PATH
- name: Check out code
Expand Down
6 changes: 3 additions & 3 deletions main.go
Original file line number Diff line number Diff line change
Expand Up @@ -194,11 +194,11 @@ func main() {
includes = append(includes, gopathJoin(gopath, pkg))
}

includes = append(includes, gopath)
includes = append(includes, pkg.Dir)
includes = append(includes, c.Includes.After...)

protoc := protocCmd{
Generators: generators(c.Generators, outputDir),
Generators: generators(c.Generators, pkg.Dir),
Files: pkg.ProtoFiles,
OutputDir: outputDir,
Includes: includes,
Expand Down Expand Up @@ -246,7 +246,7 @@ func main() {
}

var (
genDescriptors = shouldGenerateDescriptors(importDirPath)
genDescriptors = shouldGenerateDescriptors(pkg.GoImportPath)
dfp *os.File // tempfile for descriptors
)

Expand Down

0 comments on commit 714ce84

Please sign in to comment.