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

build: bump github.com/golang/glob, remove replace directive #7056

Merged
merged 1 commit into from
Sep 24, 2024

Conversation

srenatus
Copy link
Contributor

Just recently, glog introduced a fix for the potentially very expensive network call on windows that had been troubling us before:

golang/glog@9730314

It's become the v1.2.2 release.

The release is now in vendor, and the replacement has been removed.

Fixes #7024.

Just recently, glog introduced a fix for the potentially very expensive network
call on windows that had been troubling us before:

golang/glog@9730314

It's become the v1.2.2 release.

The release is now in vendor, and the replacement has been removed.

Fixes open-policy-agent#7024.

Signed-off-by: Stephan Renatus <[email protected]>
Comment on lines +9 to +11
// This follows the logic in the standard library's user.Current() function, except
// that it leaves out the potentially expensive calls required to look up the user's
// display name in Active Directory.
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

☝️ That's the important bit.

Copy link

netlify bot commented Sep 24, 2024

Deploy Preview for openpolicyagent ready!

Name Link
🔨 Latest commit 0230e21
🔍 Latest deploy log https://app.netlify.com/sites/openpolicyagent/deploys/66f28e952eb62e0008c5224a
😎 Deploy Preview https://deploy-preview-7056--openpolicyagent.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify site configuration.

Copy link
Member

@anderseknert anderseknert left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Awesome!

glog is only used through badger

Is this still the case? I don't see it here: https://github.com/dgraph-io/badger/blob/main/go.mod

But looks like we're severly lagging behind on that dependency, so...

@srenatus
Copy link
Contributor Author

% go mod why github.com/golang/glog             
# github.com/golang/glog
github.com/open-policy-agent/opa/storage/disk
github.com/dgraph-io/badger/v3
github.com/dgraph-io/ristretto/z
github.com/golang/glog

@srenatus srenatus merged commit 55aa75d into open-policy-agent:main Sep 24, 2024
28 checks passed
@srenatus srenatus deleted the sr/remove-replace branch September 24, 2024 10:16
@anderseknert
Copy link
Member

@srenatus yes, I'm saying they don't seem to use it any more, not that it's not used by the version we depend on.

@srenatus
Copy link
Contributor Author

I'm saying that they never did -- it's been an indirect dependency, and it still is :)

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

Successfully merging this pull request may close these issues.

Remove replace directives from go.mod
2 participants