-
Notifications
You must be signed in to change notification settings - Fork 1.4k
💣 ditch vendor/ #7460
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
base: main
Are you sure you want to change the base?
💣 ditch vendor/ #7460
Conversation
f4b9a8b
to
436212e
Compare
✅ Deploy Preview for openpolicyagent ready!
To edit notification comments on pull requests, go to your Netlify site configuration. |
Oh wow! This is a delightful change, and should make OPA development much more straightforward for newcomers. 🙂 The friction from the |
echo @philipaconrad... this is delightful! I would like to get this into |
@tjons Sorry for not providing context earlier: I've been trying to update our immensely outdated wasmtime-go version (#7441), but due to the way that wasmtime-go works, it'll add ~350M of binary blobs to vendor/ and hence our git history, for every version we incorporate. Now, there are some approaches to this problem:
This PR was to experiment with (2.). When pushed, it worked fine without too many changes. For (3.ii), I had been playing with this before, but I ran into some sort of road block that I only vaguely remember. I think it had to do with wazero not supporting something weird we did in our exported wasm modules (importing and exporting memory?). So, this is something to verify. ❗As a side note, if we cannot evaluate our wasm modules with wazero, noone else can, and we should fix that. As for (2.), I'm open to removing the git tracking of vendor/, but we've been having internal discussions about that a few times, and never reached a clear consensus. I take it you'd be in favor of doing so, and don't see any downsides related to not having vendor/ under git tracking? |
Possible pain-points from dropping vendoring:
Are there others? Generally, the risk and pain involved in dropping vendor/ seem pretty low. IMO, this experiment is a preferred option to dropping Wasm runtime support. Also, we can reverse this if we encounter issues. We might lose the ability to patch ancient OPA versions, but that's something we avoid doing anyways. |
I think it's pretty accurate, thanks for summing it up! I can revive this PR on Monday, but I wouldn't mind if someone beat me to it. |
c48229a
to
d0be0c7
Compare
Signed-off-by: Stephan Renatus <[email protected]>
d0be0c7
to
3a83877
Compare
What is this idea based on, btw? The go module proxy forgetting about old version? Trying to figure out if this was a possibility, I ran into this comment
So, I don't think this is really an issue. |
@srenatus, it's a worst-case scenario. Policies change, commitments change, etc. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Not a maintainer, but adding my approval as this is a nice quality-of-life improvement
No description provided.