Skip to content

Commit

Permalink
fix(deps): rename go embed dir (#15)
Browse files Browse the repository at this point in the history
  • Loading branch information
zeroshade committed Mar 23, 2023
1 parent 0698252 commit e0729ea
Show file tree
Hide file tree
Showing 13 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -30,4 +30,4 @@ jobs:
fetch-depth: 0
- name: Run go-semantic-release
run: |
docker run -e GITHUB_TOKEN=${{ secrets.GITHUB_TOKEN }} -v "$(pwd)":/code nightapes/go-semantic-release:2.1.0 release -l trace
docker run -e CI=true -e GITHUB_TOKEN=${{ secrets.GITHUB_TOKEN }} -v "$(pwd)":/code nightapes/go-semantic-release:2.1.0 release -l trace
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
8 changes: 4 additions & 4 deletions extensions/extension_mgr.go
Original file line number Diff line number Diff line change
Expand Up @@ -23,17 +23,17 @@ const SubstraitDefaultURIPrefix = "https://github.com/substrait-io/substrait/blo
// yet implemented.
var DefaultCollection Collection

//go:embed vendor/*
var vendored embed.FS
//go:embed definitions/*
var definitions embed.FS

func init() {
entries, err := vendored.ReadDir("vendor")
entries, err := definitions.ReadDir("definitions")
if err != nil {
return
}

for _, ent := range entries {
f, err := vendored.Open(path.Join("vendor/", ent.Name()))
f, err := definitions.Open(path.Join("definitions/", ent.Name()))
if err != nil {
panic(err)
}
Expand Down

0 comments on commit e0729ea

Please sign in to comment.