Conversation
|
@zepatrik: It would be great if you could take a look at |
| if cfg.Api.Retry != nil { | ||
| maxRetryDelay := time.Second | ||
| giveUpAfter := time.Millisecond * 50 | ||
| // giveUpAfter := time.Millisecond * 50 this was previously used as maxelapsedtime for the old transport implementation |
There was a problem hiding this comment.
@aeneasr : Can you please help with this one?
There was a problem hiding this comment.
You mean whether this default is ok?
| } | ||
|
|
||
| client.Transport = httpx.NewResilientRoundTripper(a.client.Transport, maxRetryDelay, giveUpAfter) | ||
| // TODO: for the below block (related to the todo above) |
There was a problem hiding this comment.
Not sure what you mean exactly 😅
|
|
|
Even the updated code compiles, there is an issue with the updated golang version (required by the current x version and also for making use the embed directive). Starting with go 1.13 a change in the "flag" package has been introduced, which makes flags.Parse panic if a flag was already defined. This means also that flag.Parse is not allowed to be used in the Init function. Unfortunately a couple of oathkeeper (indirect) dependencies (even in the latest version) do that. This results in a panic saying that the when trying to start any of the tests or trying to start the compiled oathkeeper binary. The above panic relates to google/martian#309. Other dependencies, which have the same issue are github.com/Azure/go-autorest/autorest/adal and github.com/Azure/go-autorest/autorest. An approach recommended at many places, like having a separate file in the package main
import (
"github.com/google/martian/v3"
)
var _ = func() bool {
martian.Init()
return true
}()doesn't resolve the issue, as we then run into which doesn't call flag.Parse in its init function, but does also define the I really appreciate if somebody knows how to resolve this |
zepatrik
left a comment
There was a problem hiding this comment.
Hm no idea, sorry. Maybe if you bump to ory/x v0.0.356 the dependency is actually gone? I was able to bring down the number of dependencies quite a lot there.
|
Sorry for replying so late. This is the root cause of the problem: dgraph-io/ristretto#292 I fixed this with this rewrite: |
|
Superseded by #999 |
@zepatrik: This the work in progress PR, you helped me today with.
Related issue(s)
None I'm aware of.
Checklist
works.
Further Comments
Work in progress. ;)
Current status: Does not compile as following needs still to be fixed: