-
Notifications
You must be signed in to change notification settings - Fork 36
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
VIRTS-896 adding microsoft winio library files to gocat extensions #279
Conversation
… prepare for smb piping
i'm not sure how much i like pulling these libraries into the code base. i get that this helps offline installation and keeps with our golang extension design -- but the cost seems greater, which is us maintaining and storing code that we didn't write. we should aim to do a 'go get' within the extensions design so they can be retrieved from the Microsoft GitHub library on each server start vs dropped in the code base. |
Understood, the only issue I see is that I had to make one edit in one of the microsoft winio go file methods to accept remote clients |
@khyberspache what's ur take on this? |
Put some thought to this... here's what I see as our options:
The fix for this is in microsoft/go-winio#74 and discussion is in issue microsoft/go-winio#144 with more details found here moby/moby#38627. But that couldn't hasn't been touched for fixed in 1+ year.
We would push the changes, and directly specify the MITRE version of go-winio when doing the sandcat extensions installation install. There are some peculiarities of doing this in Go however and the options basically boil down to Vender package managers or mucking around in the local git repository and grabbing the install (https://medium.com/@sasom/how-to-fork-go-packages-f863e370bbb6).
This would be a bit of a nightmare depending how we implemented it. If we want to go the route you're saying @privateducky, we have two real options: 1) we would need to back trace all of the function calls to the the Both are janky options.
Not ideal for your aforementioned reasons. In terms of ranking best to worst:
|
@khyberspache thanks for your in-depth review on this. @uruwhy let's go with #2 in @khyberspache's review above-- but let's move it to our internal source repository when we do this, so we can work through any potential hiccups for awhile privately and not have anyone else rely on it until we're comfortable w/our solution. |
Sounds good, will get started on that |
Make sense to close this given our new direction |
Adding auxiliary files for SMB pipes