Skip to content

Commit

Permalink
[Snyk] Upgrade info.picocli:picocli from 4.6.3 to 4.7.0 (#149)
Browse files Browse the repository at this point in the history
* fix: upgrade info.picocli:picocli from 4.6.3 to 4.7.0

Me amending commit from Snyk to be able to sign the commit

Snyk has created this PR to upgrade info.picocli:picocli from 4.6.3 to 4.7.0.

See this package in Maven Repository:
https://mvnrepository.com/artifact/info.picocli/picocli/

See this project in Snyk:
https://app.snyk.io/org/flyte/project/80889f34-24f9-4915-9df5-0cb18af795d6?utm_source=github&utm_medium=referral&page=upgrade-pr

Signed-off-by: Nelson Arapé <[email protected]>

* Fix formatting

Signed-off-by: Nelson Arapé <[email protected]>

* Fix picocli breaking changes

Signed-off-by: Nelson Arapé <[email protected]>

Signed-off-by: Nelson Arapé <[email protected]>
Co-authored-by: Nelson Arapé <[email protected]>
Co-authored-by: Nelson Arapé <[email protected]>
Signed-off-by: Andres Gomez Ferrer <[email protected]>
  • Loading branch information
3 people authored and andresgomezfrr committed Jan 24, 2023
1 parent 8764231 commit 9e2a333
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,8 @@ protected CommandLine.Model.OptionSpec getOption(String name, Variable variable)
CommandLine.Model.OptionSpec.Builder builder =
CommandLine.Model.OptionSpec.builder("--" + name)
.converters(getLiteralTypeConverter(name, variable))
.required(defaultValue == null);
.required(defaultValue == null)
.type(Literal.class);

if (defaultValue != null) {
builder.defaultValue(defaultValue);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -228,7 +228,7 @@ public void testParseInputs_missingArgument() {
CommandLine.ParameterException.class,
() -> parseInputs(ImmutableMap.of("arg", createVar(SimpleType.STRING)), new String[0]));

assertEquals("Missing required option: '--arg'", exception.getMessage());
assertEquals("Missing required option: '--arg=PARAM'", exception.getMessage());
}

@Test
Expand Down
2 changes: 1 addition & 1 deletion pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -90,7 +90,7 @@
<!-- must be aligned with netty version -->
<!-- see: https://github.com/grpc/grpc-java/blob/master/SECURITY.md#netty -->
<netty.tcnative.version>2.0.52.Final</netty.tcnative.version>
<picocli.version>4.6.3</picocli.version>
<picocli.version>4.7.0</picocli.version>
<protobuf.version>3.21.7</protobuf.version>
<sl4j.version>1.7.36</sl4j.version>
<spotless.version>2.21.0</spotless.version>
Expand Down

0 comments on commit 9e2a333

Please sign in to comment.