* todo
* Neaten existing DSL sketch
* rebase on #893, and sketch
* code-complete
* build artifacts for previous commit
* replace - with _ in shift and slwin
* Update .goreleaser.yml
Reorg and changes.
- Move release section to the top
- Switch to using dashes instead of underscores for naming and filenames
- Set gomod proxy to true for reproducible builds
- Add archives section to use zip for Windows builds, name Mac builds as macos instead of darwin and also have a top level directory for tar.gz
- Add the ability to build .deb and .rpm as part of the release process
* Update .goreleaser.yml
Disable gomod for goreleaser for now.
Constant types need to be repeated, unless iota is used or the
constants are declared in the same expression
(const A, B, C Type = 1, 2, 3). See
https://go.dev/ref/spec#Constant_declarations for details.
Signed-off-by: Stephen Kitt <steve@sk2.org>
The "= nil" assignment isn't necessary. Merge the error handling, and
drop the empty "if outputHandler != nil" branch.
Signed-off-by: Stephen Kitt <steve@sk2.org>
Especially for regexes, raw strings improve readability since they
aren't escaped.
While we're at it, use MustCompile instead of handling the error and
exiting.
Signed-off-by: Stephen Kitt <steve@sk2.org>
In test cases, support a ${MLR} placeholder for the mlr binary under
test, instead of assuming it's ./mlr (or its equivalent on platforms
not using forward slashes).
This ensures that wrapped mlr invocations all use the same binary,
either the default or the binary specified by the user, avoiding
surprises when ./mlr doesn't exist or is a different version.
Signed-off-by: Stephen Kitt <steve@sk2.org>
"make regression-test" assumes that ./mlr is the binary to test. To
ensure that ./mlr is available, make "build" a pre-requisite of
"regression-test"; otherwise "make regression-test" will test whatever
version of mlr is on the PATH if ./mlr doesn't exist.
Signed-off-by: Stephen Kitt <steve@sk2.org>