v5.0.0 #117
tisonkun
announced in
Announcements
v5.0.0
#117
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Full Changelog: v4.0.5...v5.0.0
Rewrite it in Rust, to fully get rid of the Native Image x Docker Image shit.
So all the JVM related distributions have gone now. Namely the alpha Maven plugin. alpha Gradle plugin, and executable JAR. I suppose that fewer people use these distributions and they can still get it from <=v4.
Docker images are not affected. You can still use:
docker run --rm -v $(pwd):/github/workspace ghcr.io/korandoru/hawkeye-native:v5 format
But now the
hawkeye-native
image is the same ashawkeye
(~28MB).In addition, you can now install
hawkeye
via Cargo:All the underneath functionality should be the same, except those related to JVM classpath is not a thing now.
It's still possible we distribute this native tool as a Maven plugin / Gradle plugin. Just as Docker written in Golang has the related plugin. But the approach would be quite different and the platform-toolchain classifier is still absent in the Java world, making a challenge to bridge Rust and Java. os-detector may help, but an expose from JVM's reflection would be desired (Not object reflection, I mean, JVM provides APIs to describe itself, including platform, toolchain, and other build/platform info).
Back to HawkEye.
You can use HawkEye in GitHub Actions or in your local machine. HawkEye provides three basic commands:
You can use
-h
or--help
to list out all config options.GitHub Actions
The HawkEye GitHub Action enables users to run license header check by HawkEye with a config file.
First of all, add a
licenserc.toml
file in the root of your project. The simplest config for projects licensed under Apache License 2.0 is as below:You should change the copyright line according to your information.
To check license headers in GitHub Actions, add a step in your GitHub workflow:
Cargo Install
The
hawkeye
executable can be installed by:Docker
Alpine image (~27MB):
docker run -it --rm -v $(pwd):/github/workspace ghcr.io/korandoru/hawkeye check
I'm somewhat rushing in this rewrite so there is still a lot of rooms to improve the experience, performance, and code style. But I'm confident that the most frequent user journey is held and works well.
Enjoy :D
This discussion was created from the release v5.0.0.
Beta Was this translation helpful? Give feedback.
All reactions