Skip to content

[master] deb: scan: include packaging revision and distro version in version#823

Closed
thaJeztah wants to merge 1 commit into
docker:masterfrom
thaJeztah:scan_include_distro
Closed

[master] deb: scan: include packaging revision and distro version in version#823
thaJeztah wants to merge 1 commit into
docker:masterfrom
thaJeztah:scan_include_distro

Conversation

@thaJeztah
Copy link
Copy Markdown
Member

@thaJeztah thaJeztah commented Jan 11, 2023

Aligning the plugin's version with the format used for docker-ce and
docker-ce-cli, as updated in 39772a7

Before this patch:

deb/debbuild/
└── ubuntu-jammy
    ├── docker-buildx-plugin_0.10.0-1~ubuntu.22.04-jammy_arm64.deb
    ├── docker-ce-cli_23.0.0~rc.2-1~ubuntu.22.04~jammy_arm64.deb
    ├── docker-ce-rootless-extras_23.0.0~rc.2-1~ubuntu.22.04~jammy_arm64.deb
    ├── docker-ce_23.0.0~rc.2-1~ubuntu.22.04~jammy_arm64.deb
    ├── docker-compose-plugin_2.15.1-1~ubuntu.22.04-jammy_arm64.deb
    └── docker-scan-plugin_0.23.0~ubuntu-jammy_arm64.deb

With this patch:

deb/debbuild/
└── ubuntu-jammy
    ├── docker-buildx-plugin_0.10.0-1~ubuntu.22.04-jammy_arm64.deb
    ├── docker-ce-cli_23.0.0~rc.2-1~ubuntu.22.04~jammy_arm64.deb
    ├── docker-ce-rootless-extras_23.0.0~rc.2-1~ubuntu.22.04~jammy_arm64.deb
    ├── docker-ce_23.0.0~rc.2-1~ubuntu.22.04~jammy_arm64.deb
    ├── docker-compose-plugin_2.15.1-1~ubuntu.22.04-jammy_arm64.deb
    └── docker-scan-plugin_0.23.0-1~ubuntu.22.04-jammy_arm64.deb

Comment thread deb/common/rules Outdated
# TODO change once we support scan-plugin on other architectures (see dpkg-architecture -L)
if [ "$(TARGET_ARCH)" = "amd64" ]; then \
dh_gencontrol -pdocker-scan-plugin -- -v$${SCAN_DEB_VERSION#v}~$${DISTRO}-$${SUITE}; \
dh_gencontrol -pdocker-scan-plugin -- -v$${SCAN_DEB_VERSION#v}-$${PKG_REVISION}~$${DISTRO}.$${VERSION_ID}-$${SUITE}; \
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Suggested change
dh_gencontrol -pdocker-scan-plugin -- -v$${SCAN_DEB_VERSION#v}-$${PKG_REVISION}~$${DISTRO}.$${VERSION_ID}-$${SUITE}; \
dh_gencontrol -pdocker-scan-plugin -- -v$${SCAN_DEB_VERSION#v}-$${PKG_REVISION}~$${DISTRO}.$${VERSION_ID}~$${SUITE}; \

(Still a touch too many hyphen 😂)

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

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

😭 😭 😭 😭 should be fixed now!

Aligning the plugin's version with the format used for docker-ce and
docker-ce-cli, as updated in 39772a7

Before this patch:

    deb/debbuild/
    └── ubuntu-jammy
        ├── docker-buildx-plugin_0.10.0-1~ubuntu.22.04-jammy_arm64.deb
        ├── docker-ce-cli_23.0.0~rc.2-1~ubuntu.22.04~jammy_arm64.deb
        ├── docker-ce-rootless-extras_23.0.0~rc.2-1~ubuntu.22.04~jammy_arm64.deb
        ├── docker-ce_23.0.0~rc.2-1~ubuntu.22.04~jammy_arm64.deb
        ├── docker-compose-plugin_2.15.1-1~ubuntu.22.04-jammy_arm64.deb
        └── docker-scan-plugin_0.23.0~ubuntu-jammy_arm64.deb

With this patch:

    deb/debbuild/
    └── ubuntu-jammy
        ├── docker-buildx-plugin_0.10.0-1~ubuntu.22.04-jammy_arm64.deb
        ├── docker-ce-cli_23.0.0~rc.2-1~ubuntu.22.04~jammy_arm64.deb
        ├── docker-ce-rootless-extras_23.0.0~rc.2-1~ubuntu.22.04~jammy_arm64.deb
        ├── docker-ce_23.0.0~rc.2-1~ubuntu.22.04~jammy_arm64.deb
        ├── docker-compose-plugin_2.15.1-1~ubuntu.22.04-jammy_arm64.deb
        └── docker-scan-plugin_0.23.0-1~ubuntu.22.04~jammy_arm64.deb

Signed-off-by: Sebastiaan van Stijn <github@gone.nl>
@thaJeztah thaJeztah force-pushed the scan_include_distro branch from adb7804 to 1f2ff93 Compare January 11, 2023 23:13
@thaJeztah
Copy link
Copy Markdown
Member Author

I created a 23.0 branch in this repository, so master will no longer be used for the 23.0.x releases; I'll move this out of draft, and open a draft cherry-pick for the 23.0 branch, which we can merge when updating docker scan to a newer version.

@thaJeztah thaJeztah marked this pull request as ready for review February 7, 2023 12:10
@thaJeztah thaJeztah marked this pull request as draft March 31, 2023 14:09
@thaJeztah thaJeztah closed this Mar 15, 2024
@thaJeztah thaJeztah deleted the scan_include_distro branch March 15, 2024 13:07
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.

2 participants