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

Remove go.mod from subpackages except API and fix Makefile #33

Merged
1 commit merged into from
Jan 18, 2023

Conversation

ghost
Copy link

@ghost ghost commented Jan 17, 2023

This commit removes the go.mod from the subpackages runtime_scan and backend as they import each other in multiple places resulting in managing the same set of dependecies in three different places.

Once these go.mods are removed then the Makefile targets for linting, fixing and testing can be cleaned up significantly and all packages treated as one module.

This commit also fixes an issue in the docker targets which results in the cli and backend containers getting tagged with the same image name "vmclarity" when they should be "vmclarity-cli" and "vmclarity-backend".

One final change is that the Dockerfiles have been updated to use the buildkit caches for the go compilations which speed us local docker build times significantly.

Dockerfile.backend Outdated Show resolved Hide resolved
shared/pkg/families/secrets/job/job.go Show resolved Hide resolved
@ghost ghost force-pushed the cleanup_linters_and_mods branch from fe29d3e to 9b04815 Compare January 18, 2023 08:18
This commit removes the go.mod from the subpackages runtime_scan and
backend as they import each other in multiple places resulting in
managing the same set of dependecies in three different places.

Once these go.mods are removed then the Makefile targets for linting,
fixing and testing can be cleaned up significantly and all packages
treated as one module.

This commit also fixes an issue in the docker targets which results in
the cli and backend containers getting tagged with the same image name
"vmclarity" when they should be "vmclarity-cli" and "vmclarity-backend".

One final change is that the Dockerfiles have been updated to use the
buildkit caches for the go compilations which speed us local docker
build times significantly.
@ghost ghost force-pushed the cleanup_linters_and_mods branch from 9b04815 to eb654c3 Compare January 18, 2023 09:12
@ghost ghost requested a review from akpsgit January 18, 2023 09:15
@ghost ghost merged commit 715e4dc into main Jan 18, 2023
@ghost ghost deleted the cleanup_linters_and_mods branch January 18, 2023 10:14
This pull request was closed.
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.

None yet

3 participants