Skip to content

Commit

Permalink
fix(util): runtime.Caller in go1.19 skip param error, skip in go1…
Browse files Browse the repository at this point in the history
….19 is 0, in go1.21 is 1
  • Loading branch information
kumfo committed Jul 15, 2024
1 parent 1ee19b6 commit 371ef5d
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion util/go.mod
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
module github.com/apache/incubator-answer-plugins/util

go 1.21.4
go 1.19

require gopkg.in/yaml.v3 v3.0.1
2 changes: 1 addition & 1 deletion util/util.go
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ type Info struct {
}

func (c *Info) GetInfo() *Info {
_, filename, _, _ := runtime.Caller(0)
_, filename, _, _ := runtime.Caller(1)
wd := filepath.Dir(filename)

yamlFilePath := filepath.Join(wd, "info.yaml")
Expand Down

0 comments on commit 371ef5d

Please sign in to comment.