Skip to content

Commit 475df5c

Browse files
authored
Merge pull request #412 from zonemaster/develop
Merge develop branch into master (CLI)
2 parents 18dcbba + f10746f commit 475df5c

21 files changed

+1635
-732
lines changed

.travis.yml

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
dist: jammy
2+
group: previous
23

34
language: perl
45

@@ -17,11 +18,13 @@ addons:
1718
- cpanminus
1819
- libclone-perl
1920
- libdevel-checklib-perl
21+
- libextutils-pkgconfig-perl
2022
- libfile-sharedir-perl
2123
- libfile-slurp-perl
2224
- libidn2-dev
2325
- libintl-perl
2426
- libjson-pp-perl
27+
- liblist-compare-perl
2528
- liblist-moreutils-perl
2629
- liblocale-msgfmt-perl
2730
- libmail-rfc822-address-perl
@@ -39,7 +42,6 @@ addons:
3942
- libtool
4043
- m4
4144
# From Zonemaster CLI installation instruction for Ubuntu
42-
# libmoosex-getopt-perl, see cpan-install below
4345
# libmodule-install-perl, see cpan-install below
4446
- libtry-tiny-perl
4547

@@ -54,9 +56,6 @@ before_install:
5456
# Zonemaster LDNS needs a newer version of Module::Install
5557
- cpan-install Module::Install Module::Install::XSUtil
5658

57-
# Moose installed from OS package depends on a newer version of Devel::OverloadInfo
58-
- cpan-install Devel::OverloadInfo Moose MooseX::Getopt
59-
6059
# IO::Socket::INET6 can't find Socket6 installed from OS package
6160
- cpan-install Socket6 IO::Socket::INET6
6261

Changes

Lines changed: 24 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,27 @@
1-
Release history for Zonemaster component Zonemaster-CLI
1+
Release history for Zonemaster component Zonemaster-CLI
2+
3+
4+
v7.1.0 2024-12-09 (part of Zonemaster v2024.2 release)
5+
6+
[Release information]
7+
- Translations have not been fully updated in this release. They will
8+
be updated in an upcoming extra release.
9+
10+
[Features]
11+
- Corrects display when running 'zonemaster-cli' with '--ns' or '--ds'
12+
(#382)
13+
- Allows explicitly setting '--stop-level' to empty string (#395)
14+
15+
[Fixes]
16+
- Provides a useful link in man page (#401)
17+
- Write “AS” in uppercase in Dockerfile (#400)
18+
- Corrects gettext code (#398)
19+
- Organizes "zonemaster-cli --help" text (#389)
20+
- Make "zonemaster-cli" usage documentation consistent and also remove
21+
dependency on the Moose library (#371)
22+
- Fixes the handling of invalid --hints argument (#386)
23+
- Moves the "zonemaster-info" utility from this repository (#385)
24+
- Clean-up exit statuses (#381)
225

326

427
v7.0.0 2024-07-01 (part of Zonemaster v2024.1 release)

Dockerfile

Lines changed: 8 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -1,41 +1,29 @@
1-
FROM zonemaster/engine:local as build
1+
FROM zonemaster/engine:local AS build
22

33
RUN apk add --no-cache \
4-
build-base \
54
make \
65
perl-app-cpanminus \
7-
perl-cpan-meta-check \
8-
perl-data-dump \
9-
perl-dev \
10-
perl-doc \
116
perl-json-xs \
127
perl-lwp-protocol-https \
13-
perl-module-build \
14-
perl-module-build-tiny \
15-
perl-module-install \
16-
perl-moose \
17-
perl-namespace-autoclean \
18-
perl-params-validate \
19-
perl-path-tiny \
8+
perl-mojolicious \
209
perl-test-deep \
21-
perl-test-needs \
22-
&& cpanm --no-wget --from https://cpan.metacpan.org/ \
23-
MooseX::Getopt
10+
perl-test-differences \
11+
perl-try-tiny \
12+
&& cpanm --notest --no-wget --from https://cpan.metacpan.org/ \
13+
JSON::Validator
2414

2515
ARG version
2616

2717
COPY ./Zonemaster-CLI-${version}.tar.gz ./Zonemaster-CLI-${version}.tar.gz
2818

29-
RUN cpanm --no-wget \
19+
RUN cpanm --notest --no-wget \
3020
./Zonemaster-CLI-${version}.tar.gz
3121

3222
FROM zonemaster/engine:local
3323

3424
RUN apk add --no-cache \
35-
perl-namespace-autoclean \
36-
perl-params-validate \
3725
perl-json-xs \
38-
perl-moose
26+
perl-try-tiny
3927

4028
COPY --from=build /usr/local/bin/zonemaster-cli /usr/local/bin/zonemaster-cli
4129
# Include all the Perl modules we built

MANIFEST

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,6 @@ MANIFEST This list of files
1818
META.yml
1919
README.md
2020
script/zonemaster-cli
21-
script/zonemaster-info
2221
share/GNUmakefile
2322
share/Makefile
2423
share/locale/da/LC_MESSAGES/Zonemaster-CLI.mo
@@ -28,3 +27,11 @@ share/locale/fr/LC_MESSAGES/Zonemaster-CLI.mo
2827
share/locale/nb/LC_MESSAGES/Zonemaster-CLI.mo
2928
share/locale/sv/LC_MESSAGES/Zonemaster-CLI.mo
3029
t/00-load.t
30+
t/pod.t
31+
t/usage.fake-data.data
32+
t/usage.fake-root.data
33+
t/usage.hints
34+
t/usage.normal.data
35+
t/usage.profile
36+
t/usage.t
37+
t/usage.wrapper.pl

MANIFEST.SKIP

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -78,3 +78,6 @@ t/po-files.t
7878

7979
# Development mode aid for File::ShareDir
8080
^lib/auto/share/dist/Zonemaster-CLI
81+
82+
# Avoid MANIFEST test
83+
t/manifest.t

Makefile.PL

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -22,10 +22,14 @@ requires(
2222
'Net::IP::XS' => 0,
2323
'JSON::XS' => 0,
2424
'Locale::TextDomain' => 1.23,
25-
'MooseX::Getopt' => 0,
2625
'Try::Tiny' => 0,
27-
'Zonemaster::LDNS' => 4.000002, # v4.0.2
28-
'Zonemaster::Engine' => 6.000000, # v6.0.0
26+
'Zonemaster::LDNS' => 4.001000, # v4.1.0
27+
'Zonemaster::Engine' => 7.000000, # v7.0.0
28+
);
29+
30+
test_requires(
31+
'JSON::Validator' => 0,
32+
'Test::Differences' => 0,
2933
);
3034

3135
# Make all platforms include inc/Module/Install/External.pm

README.md

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -38,8 +38,13 @@ To build your own Docker image, see the [Docker Image Creation] documentation.
3838

3939
## Documentation
4040

41-
Other than the installation documentation, no specific documentation is needed.
42-
The [USING] document provides an overview on how to use the CLI.
41+
Run `zonemaster-cli --help` to get brief descriptions of a selection of the most
42+
important command line options.
43+
For complete reference documentation, see the manual page by running `man
44+
zonemaster-cli`.
45+
Additional end-user documentation is available in the [USING] document.
46+
47+
When developing Zonemaster-CLI, refer to the [development documentation].
4348

4449

4550
## Participation, Contact and Bug reporting
@@ -54,6 +59,7 @@ This is free software under a 2-clause BSD license. The full text of the license
5459
be found in the [LICENSE](LICENSE) file included in this respository.
5560

5661

62+
[Development documentation]: https://github.com/zonemaster/zonemaster/blob/master/docs/public/development/cli.md
5763
[Docker Image Creation]: https://github.com/zonemaster/zonemaster/blob/master/docs/internal/maintenance/ReleaseProcess-create-docker-image.md
5864
[Docker Hub]: https://hub.docker.com/u/zonemaster
5965
[Installation]: https://github.com/zonemaster/zonemaster/blob/master/docs/public/installation/zonemaster-cli.md

0 commit comments

Comments
 (0)