Skip to content

Update scallop to 5.0.0#1063

Merged
tuxji merged 1 commit intoapache:mainfrom
scala-steward:update/scallop-5.0.0
Aug 10, 2023
Merged

Update scallop to 5.0.0#1063
tuxji merged 1 commit intoapache:mainfrom
scala-steward:update/scallop-5.0.0

Conversation

@scala-steward
Copy link
Copy Markdown
Contributor

About this PR

📦 Updates org.rogach:scallop from 4.1.0 to 5.0.0

📜 GitHub Release Notes - Version Diff

Usage

Please merge!

I'll automatically update this PR to resolve conflicts as long as you don't change it yourself.

If you'd like to skip this version, you can just close this PR. If you have any feedback, just mention me in the comments below.

Configure Scala Steward for your repository with a .scala-steward.conf file.

Have a fantastic day writing Scala!

⚙ Adjust future updates

Add this to your .scala-steward.conf file to ignore future updates of this dependency:

updates.ignore = [ { groupId = "org.rogach", artifactId = "scallop" } ]

Or, add this to slow down future updates of this dependency:

dependencyOverrides = [{
  pullRequests = { frequency = "30 days" },
  dependency = { groupId = "org.rogach", artifactId = "scallop" }
}]
labels: library-update, early-semver-major, semver-spec-major, commit-count:1

Implements new Scallop stdoutPrintln and stderrPrintln variables to
output to the STDOUT and STDERR variables instead of Console.out/err.

Implements new Scallop exitHandler variable to throw a new exception
that contains the exit code instead of calling Sys.exit. This exception
is later caught, turned into a Daffodil ExitCode enumeration value, and
handle appropriately.

These changes allow unit tests using --help and --version to work as
expected. Previously the expect library could not see the usage output
and the call to Sys.exit caused SBT to exit. Now scallop writes to the
provider buffers and does no force exit, letting our CLI testing
infrastructure capture those values. When not run via test, the CLI
behaves the same as before.
Copy link
Copy Markdown
Member

@stevedlawrence stevedlawrence left a comment

Choose a reason for hiding this comment

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

+1

  • Do all automated continuous integration checks pass?
    Yes
  • Is the update a patch, minor, or major update?
    Major update, though breaking changes are only about how --help and --version are handled, which is an improvement and I doubt anyone relies on the old behavior. It also adds new variables that I've implemented so that we can test --help and --version in our CLI test infrastructure. Those options aren't that important to test, but it's good that everything is now consistent and there are no edge cases. This could also be useful for Java tools that run the CLI by calling Main.run, since bad args won't cause them to prematurely exit anymore.
  • Is the license still compatible with ASF License Policy?
    Yes, still MIT
  • Have any changes been made to LICENSE/NOTICE files that need to be incorporated?
    No changes to LICENSE, no NOTICE file
  • Have any transitive dependencies been added or changed?
    No changes to transitive dependencies

Copy link
Copy Markdown
Contributor

@tuxji tuxji left a comment

Choose a reason for hiding this comment

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

+1

@tuxji tuxji merged commit 7029528 into apache:main Aug 10, 2023
@scala-steward scala-steward deleted the update/scallop-5.0.0 branch January 28, 2026 16:00
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.

3 participants