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

[chore] Small refactoring in builder config validation/parsing #11613

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

bogdandrutu
Copy link
Member

No description provided.

@bogdandrutu bogdandrutu requested a review from a team as a code owner November 5, 2024 22:35
for _, mod := range mods {
if mod.Import == "" {
mod.Import = strings.Split(mod.GoMod, " ")[0]
func parseModules(mods []Module) error {
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is changing the behaviour or parseModules to not return an updated version of the modules, is that wanted? Or should this be receiving []*Module if we want to change the modules in place?

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Or should this be receiving []*Module if we want to change the modules in place?

Why? The slice is implemented as a pointer to memory and size/cap. The memory can be changed in place, we have tests for that.

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Copy link

codecov bot commented Nov 6, 2024

Codecov Report

Attention: Patch coverage is 96.87500% with 1 line in your changes missing coverage. Please review.

Project coverage is 91.59%. Comparing base (9cc15c5) to head (1223c7d).
Report is 59 commits behind head on main.

Files with missing lines Patch % Lines
cmd/builder/internal/builder/config.go 96.87% 1 Missing ⚠️
Additional details and impacted files
@@            Coverage Diff             @@
##             main   #11613      +/-   ##
==========================================
+ Coverage   91.53%   91.59%   +0.06%     
==========================================
  Files         441      441              
  Lines       23922    23888      -34     
==========================================
- Hits        21896    21880      -16     
+ Misses       1650     1638      -12     
+ Partials      376      370       -6     

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.


🚨 Try these New Features:

Copy link
Contributor

This PR was marked stale due to lack of activity. It will be closed in 14 days.

@github-actions github-actions bot added the Stale label Nov 21, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants