-
Notifications
You must be signed in to change notification settings - Fork 9
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
Remove process/exec for git binaries #51
Remove process/exec for git binaries #51
Conversation
Test with ``` bb bbin install io.github.borkdude/carve --as carve-dev && cat $(which carve-dev) && carve-dev ; time carve-dev ``` 0.069 Vs bbin install io.github.borkdude/carve --as carve-wrapped && cat $(which carve-wrapped) && carve-wrapped ; time carve-wrapped 0.100
|
Maybe we should prevent running the private repo tests for GITHUB_ACTOR != rads? |
@jeroenvandijk @borkdude: My intent was to set things up so we can still run the private repo tests without being tied to a specific environment. The private repos can be checked out using the That said, I think there may be an issue with how I swapped out the Git command using the |
@rads |
You can run this to check if the
|
@borkdude: Good to know, I can try using the env var instead of the system property (ensuring that subprocesses also have it set) and see if that fixes it. |
@rads I've tried to export the |
If the |
Btw, locally the tests are failing for me like this, but it seems the private git repo works (without changes in my env):
|
-f might need —-deps-root like @borkdude mentioned here babashka#50 (comment)
If we solve the Git wrapper thing, tests should pass now. The last two that are failing are failing like mentioned by @borkdude. Having said that, the implementation I just added feels quite bad and it needs a separate test for the |
@jeroenvandijk: Those failing tests are installing from the file system rather than Git so I’m thinking it’s something else. |
Regarding the code quality: I plan to refactor the installation functions as part of the next chunk of work, so I’m fine with the code being messy right now as long as the tests pass. In the future, I will likely add a protocol for installing and set up each procurer/artifact pair as its own implementation, which will require rewriting most of the existing installation code. The tests should stay the same though. |
Ah true, I wasn't paying enough attention. So the Git tests are working then, sorry. Getting late here. |
@rads I've reverted the commits to see if the tests would be green again (locally they are not), but CI is now showing the same errors as locally, without any diff with main. |
@jeroenvandijk: Should we keep this PR open still? |
@rads No it can be closed. There is some work left and I need to dive into it again. I'll create a new PR when I get to it. |
Test with
0.069
Vs
0.100
Please answer the following questions and leave the below in as part of your PR.
I need to fix the tests, but this is a first proof of concept that seems to work.