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

Extended support for snapshot policy for resolver in Maven Projects #1353

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

Conversation

fluxxBot
Copy link
Collaborator

@fluxxBot fluxxBot commented Feb 24, 2025

  • All tests passed. If this feature is not already covered by the tests, I added new tests.
  • All static analysis checks passed.
  • This pull request is on the dev branch.
  • I used gofmt for formatting the code before submitting the pull request.

depends on :-

  1. Extended support for snapshot policy for resolver in Maven Projects jfrog-cli#2883
  2. Support for configuring snapshot policy enablement and update for Mav… build-info#818

Comment on lines +256 to +260
// set to false only when user explicitly sets it
configFile.Resolver.EnableSnapshots = true
if c.IsSet(enableSnapshots) {
configFile.Resolver.EnableSnapshots = c.Bool(enableSnapshots)
}
Copy link
Contributor

Choose a reason for hiding this comment

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

Suggested change
// set to false only when user explicitly sets it
configFile.Resolver.EnableSnapshots = true
if c.IsSet(enableSnapshots) {
configFile.Resolver.EnableSnapshots = c.Bool(enableSnapshots)
}
configFile.Resolver.EnableSnapshots = c.BoolT(enableSnapshots)

Repo string `yaml:"repo,omitempty"`
ServerId string `yaml:"serverId,omitempty"`
SnapshotRepo string `yaml:"snapshotRepo,omitempty"`
EnableSnapshots bool `yaml:"enableSnapshots"`
Copy link
Contributor

Choose a reason for hiding this comment

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

Suggested change
EnableSnapshots bool `yaml:"enableSnapshots"`
EnableSnapshots bool `yaml:"enableSnapshots,omitempty"`

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
new feature Automatically generated release notes
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants