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

internal/config: allow nils for settings with default values #94

Merged
merged 1 commit into from
Sep 17, 2024

Conversation

seilagamo
Copy link
Collaborator

As part of the future development of the functionality that will allow importing configurations, we need to be able to distinguish those settings that have not been specified in the configuration but which until now have been automatically assigned a default value.
Therefore, these settings are now converted into pointers.

cmd/lava/internal/run/run.go Outdated Show resolved Hide resolved
cmd/lava/internal/scan/scan.go Outdated Show resolved Hide resolved
cmd/lava/internal/scan/scan.go Outdated Show resolved Hide resolved
internal/config/config.go Outdated Show resolved Hide resolved
Copy link
Contributor

@jroimartin jroimartin left a comment

Choose a reason for hiding this comment

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

Just a couple of nitpicks. Fix them and clean-up the commit history.

internal/config/config_test.go Outdated Show resolved Hide resolved
cmd/lava/internal/run/run.go Outdated Show resolved Hide resolved
cmd/lava/internal/scan/scan.go Outdated Show resolved Hide resolved
internal/report/report.go Outdated Show resolved Hide resolved
Copy link
Contributor

@jroimartin jroimartin left a comment

Choose a reason for hiding this comment

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

LGTM! Great job!

@seilagamo seilagamo merged commit c75747c into main Sep 17, 2024
6 checks passed
@seilagamo seilagamo deleted the allow-nils branch September 17, 2024 10:36
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.

2 participants