You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+25-11Lines changed: 25 additions & 11 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -272,7 +272,8 @@ If you want to contribute to this project please follow these guidelines:
272
272
- Changes should be reflected into the [CHANGELOG.md](CHANGELOG.md)
273
273
274
274
The maintainers
275
-
- Bump the [VERSION](VERSION) file if a release is needed
275
+
- Version is derived from the [CHANGELOG.md](CHANGELOG.md) using the last non-upcoming header (##)
276
+
- Use `make update` to automatically update dependencies and add a line in the [CHANGELOG.md](CHANGELOG.md)
276
277
277
278
### Building
278
279
@@ -286,16 +287,29 @@ make
286
287
287
288
This creates a binary in the `./build` folder. Look at the [Build options section](#Build%20options) for more build options.
288
289
289
-
#### Build options
290
-
291
-
target | description
292
-
--------|------------
293
-
all | execute `test` and `build` target
294
-
build | use `go build` to create binary for current GOARCH and GOOS in `./build`
295
-
test | use `go test` to execute the unit test and create a coverage report `./build/test-coverage.out`
296
-
clean | clean the build directory
297
-
compile | build the script for FreeBDS, Linux, MacOS, and Windows in `./build`
298
-
dist | execute `clean` and `compile` targets, and create tar.gz files in `./dist`
290
+
#### Make options
291
+
292
+
The targets used by default are:
293
+
- freebsd/amd64
294
+
- darwin/amd64
295
+
- darwin/arm64
296
+
- linux/amd64
297
+
- linux/arm64
298
+
- windows/amd64
299
+
300
+
Use `make <command> TARGETS=<os>/<arch>` to execute make with your own OS and Architecture, e.g. `make build TARGETS=freebsd/arm64`.
301
+
302
+
target | description
303
+
------------|------------
304
+
version | retrieve and display the version from the [CHANGELOG.md](CHANGELOG.md)
305
+
test | use `go test` to execute the unit test and create a coverage report `./build/test-coverage.out`
306
+
build | build the binary for every OS and Arch stated
307
+
dist-check | validations performed to see if the codebase is ready for a release, on default this will skipped unless performed on the acceptance or master branch
308
+
dist-create | create tar.gz files in `./dist` for all targets using the binaries from `./build`
309
+
dist | perform a clean, dist-check build and dist-create
310
+
update-dependencies | update go version and update dependencies, makes sure everything is tiday, and add a line to the changelog
311
+
update | perform a clean, update-dependencies and a test
0 commit comments