Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

jiracli.findClosestParentPath is broken with figtree v1.0.0 #277

Closed
mikepea opened this issue Sep 16, 2019 · 1 comment
Closed

jiracli.findClosestParentPath is broken with figtree v1.0.0 #277

mikepea opened this issue Sep 16, 2019 · 1 comment

Comments

@mikepea
Copy link
Collaborator

mikepea commented Sep 16, 2019

Somehow I managed to update the go.mod to use coryb/figtree v1.0.0 -- I think this happened kinda naturally, since the current specified version is pinned to v0.0.0-{commit}.

There's a difference in the function signature, that results in an error:

jiracli/util.go:29:34: too many arguments in call to figtree.FindParentPaths
mikepea added a commit that referenced this issue Sep 16, 2019
... largely to confirm behaviour of underlying figtree function, and to
highlight when we're pulling the old figtree and hence breaking the
build

No idea why a regular compile isn't picking this up - but when
explicitly testing like this, we get the error detailed in #277:

```
Mikes-MBP:jira mike$ go test ./...
?       github.com/go-jira/jira [no test files]
jiracli/util.go:29:34: too many arguments in call to figtree.FindParentPaths
        have (string, string, string)
        want (string)
jiracli/util.go:29:34: too many arguments in call to figtree.FindParentPaths
        have (string, string, string)
        want (string)
FAIL    github.com/go-jira/jira/jiracli [build failed]
ok      github.com/go-jira/jira/jiradata        (cached)
Mikes-MBP:jira mike$
```
mikepea added a commit that referenced this issue Sep 16, 2019
Ran `go get -u github.com/coryb/figtree@master`

Tests now pass
@mikepea mikepea changed the title jiracli.findClosestParentPath is broken when using go modules jiracli.findClosestParentPath is broken with figtree v1.0.0 Sep 16, 2019
mikepea added a commit that referenced this issue Sep 16, 2019
I inadvertently 'upgraded' to coryb/figtree v1.0.0, and it caused an
error in findCLosestParentPath, due to figtree.FindParentPaths having
a different function signature in v1.0.0

No idea why a regular compile isn't picking this up - but when
explicitly testing like this, we get the error detailed in #277:

```
Mikes-MBP:jira mike$ go test ./...
?       github.com/go-jira/jira [no test files]
jiracli/util.go:29:34: too many arguments in call to figtree.FindParentPaths
        have (string, string, string)
        want (string)
jiracli/util.go:29:34: too many arguments in call to figtree.FindParentPaths
        have (string, string, string)
        want (string)
FAIL    github.com/go-jira/jira/jiracli [build failed]
ok      github.com/go-jira/jira/jiradata        (cached)
Mikes-MBP:jira mike$
```
coryb added a commit that referenced this issue Sep 16, 2019
mikepea added a commit that referenced this issue Sep 16, 2019
@coryb
Copy link
Contributor

coryb commented Sep 16, 2019

fixed in #278

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants