-
Notifications
You must be signed in to change notification settings - Fork 29
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
Move tools an acceptance to repository root #327
Conversation
Codecov Report
Additional details and impacted files@@ Coverage Diff @@
## main #327 +/- ##
==========================================
- Coverage 77.33% 76.56% -0.78%
==========================================
Files 45 45
Lines 3433 3358 -75
==========================================
- Hits 2655 2571 -84
- Misses 778 787 +9
Flags with carried forward coverage won't be shown. Click here to find out more.
|
d7b8eac
to
82c2aa3
Compare
This seems pretty straight forward. If using go 1.18 or newer, it doesn't seem to require any special usage. It just works. Are there any downsides to this approach? I wonder if there will be any issues with dependabot. |
Seems that dependabot doesn't support workspaces right now, so that's a downside -- I've seen Other than that, I was hoping that we could work with dependencies a bit more independent, but that is not the case, so having modules without workspace could be a bit more helpful at the moment. For example, the acceptance tests could run with a different version of docker go API than the CLI, which would help with Testcontainers update (#325). Downside of that, is that I don't think it's good for the projects to drift in versions, an example of that would be tekton/cli vs tekton/pipeline version issue that occurred in #324. I haven't seen anything that would impede the day to day workflow. We don't really need workspaces, the modules don't depend on each other. An interesting development could be if we were to merge the https://github.com/hacbs-contract/enterprise-contract-controller and https://github.com/hacbs-contract/ec-cli into a single git repository, here workspace would be very beneficial, so if we would like to consider that, this would be a good first step. |
I can see the "move acceptance tests to their own directory with their own go.mod file" change, but what part of this change is the "create go workspace"? |
In essence the We don't inter-depend between modules so no other changes are visible. If we were, the |
Aha, thanks. |
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.
Approve FWIW, but I don't have much insight into the pros and cons.
82c2aa3
to
00ab884
Compare
Have we decided to drop this, at least for now? |
I'll remove the |
00ab884
to
c7b267d
Compare
c7b267d
to
eea4a30
Compare
This sets up the acceptance tests as a separate go module and moves acceptance and tools from `internal` to repository root to better reflect them as modules.
eea4a30
to
8b42166
Compare
This sets up the acceptance tests as a separate go module and moves acceptance and tools from
internal
to repository root to better reflect them as modules.