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

go.mod replace directives are breaking out of tree builds #575

Open
2 of 3 tasks
kris-watts-gravwell opened this issue Dec 9, 2022 · 9 comments
Open
2 of 3 tasks
Assignees
Labels
bug unexpected problem or unintended behavior Medium medium priority
Milestone

Comments

@kris-watts-gravwell
Copy link
Contributor

kris-watts-gravwell commented Dec 9, 2022

What are the steps to reproduce this issue?

  1. Create a super simple ingester outside the main tree (example attached)

  2. build it

What happens?

it can't build

What were you expecting to happen?

that it would build

Any logs, error output, etc?

/home/kris/mygo/pkg/mod/github.com/gravwell/gravwell/v3@v3.8.15/ingest/processors/plugin/packages.go:1264:34: undefined: jsonparser.FuzzDelete
/home/kris/mygo/pkg/mod/github.com/gravwell/gravwell/v3@v3.8.15/ingest/processors/plugin/packages.go:1265:35: undefined: jsonparser.FuzzEachKey
/home/kris/mygo/pkg/mod/github.com/gravwell/gravwell/v3@v3.8.15/ingest/processors/plugin/packages.go:1266:38: undefined: jsonparser.FuzzGetBoolean
/home/kris/mygo/pkg/mod/github.com/gravwell/gravwell/v3@v3.8.15/ingest/processors/plugin/packages.go:1267:36: undefined: jsonparser.FuzzGetFloat
/home/kris/mygo/pkg/mod/github.com/gravwell/gravwell/v3@v3.8.15/ingest/processors/plugin/packages.go:1268:34: undefined: jsonparser.FuzzGetInt
/home/kris/mygo/pkg/mod/github.com/gravwell/gravwell/v3@v3.8.15/ingest/processors/plugin/packages.go:1269:37: undefined: jsonparser.FuzzGetString
/home/kris/mygo/pkg/mod/github.com/gravwell/gravwell/v3@v3.8.15/ingest/processors/plugin/packages.go:1270:43: undefined: jsonparser.FuzzGetUnsafeString
/home/kris/mygo/pkg/mod/github.com/gravwell/gravwell/v3@v3.8.15/ingest/processors/plugin/packages.go:1271:38: undefined: jsonparser.FuzzObjectEach
/home/kris/mygo/pkg/mod/github.com/gravwell/gravwell/v3@v3.8.15/ingest/processors/plugin/packages.go:1272:37: undefined: jsonparser.FuzzParseBool
/home/kris/mygo/pkg/mod/github.com/gravwell/gravwell/v3@v3.8.15/ingest/processors/plugin/packages.go:1273:38: undefined: jsonparser.FuzzParseFloat
/home/kris/mygo/pkg/mod/github.com/gravwell/gravwell/v3@v3.8.15/ingest/processors/plugin/packages.go:1273:38: too many errors

Any other comments?

I think THIS is the problem:

replace github.com/buger/jsonparser => github.com/floren/jsonparser v0.0.0-20210727191945-e5063027fceb

What versions of software are you using?

5.1.3

Replace directives we have:

@kris-watts-gravwell kris-watts-gravwell added the bug unexpected problem or unintended behavior label Dec 9, 2022
@kris-watts-gravwell kris-watts-gravwell added this to the v5.1.4 milestone Dec 9, 2022
@john-floren-gravwell
Copy link
Collaborator

john-floren-gravwell commented Dec 12, 2022

I think we can get rid of the msgraph replace, because they merged my PR: open-networks/go-msgraph#3

I will test this.

Note that go-msgraph is now deprecated because Microsoft added an official Go library... unfortunately that means I'll probably have to rewrite stuff to make it work: https://github.com/microsoftgraph/msgraph-sdk-go

@john-floren-gravwell
Copy link
Collaborator

I updated my PR for the jsonparser library, which is very minimal.

@john-floren-gravwell
Copy link
Collaborator

@kris-watts-gravwell it looks like your fsnotify fork is very close to the upstream; have you considered doing a PR? Or have they indicated they're not interested?

@john-floren-gravwell
Copy link
Collaborator

buger/jsonparser#180 I feel like this is a pretty straightforward fix but it's been pocketed for years now.

@kris-watts-gravwell
Copy link
Contributor Author

i will push a PR up to fsnotify, some of the others will likely need full up forks on some of these.

Lets just get this moving and punt as needed.

@kris-watts-gravwell
Copy link
Contributor Author

i suggest that this be a longer term project, lets keep walking this issue forward so we don't lose it, but we can just track which replace directives have upstream PRs, which are accepted, etc...

@john-floren-gravwell
Copy link
Collaborator

john-floren-gravwell commented Jan 11, 2023

buger/jsonparser#180 I feel like this is a pretty straightforward fix but it's been pocketed for years now.

Executive decision: if we don't manage to get it merged by the end of January, we'll just give up and switch to my fork.

@kris-watts-gravwell
Copy link
Contributor Author

kris-watts-gravwell commented Jan 19, 2023

PR for fsnotify is in: fsnotify/fsnotify#550

It is going into main, so even if its accepted we won't be able to use it until a new fsnotify release is pushed out.

@ashnwade ashnwade added the Medium medium priority label Jan 27, 2023
@ashnwade ashnwade modified the milestones: v5.2.0, v5.2.1 Feb 6, 2023
@ashnwade ashnwade modified the milestones: v5.2.1, v5.2.2 Mar 2, 2023
@kris-watts-gravwell
Copy link
Contributor Author

I am making the call, we fork jsonparser and use our fork. Check the other PRs that are also idling, there might be some more goodness/stability fixes in them too.

I am working with a dev on fsnotify to get our shit fixed there, then we can update the fsnotify lib

@ashnwade ashnwade modified the milestones: v5.2.2, v5.2.3, v5.3.0 Apr 3, 2023
@kris-watts-gravwell kris-watts-gravwell modified the milestones: v5.3.0, v5.3.1 May 1, 2023
@ashnwade ashnwade modified the milestones: v5.3.1, v5.4.0 May 19, 2023
@ashnwade ashnwade removed this from the v5.4.0 milestone Jul 17, 2023
@ashnwade ashnwade added this to the v6.0.0 milestone Jul 17, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug unexpected problem or unintended behavior Medium medium priority
Projects
None yet
Development

No branches or pull requests

3 participants