Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

rockcraft insists on rebuilding part that has not changed #812

Open
nicolasbock opened this issue Feb 12, 2025 · 0 comments
Open

rockcraft insists on rebuilding part that has not changed #812

nicolasbock opened this issue Feb 12, 2025 · 0 comments

Comments

@nicolasbock
Copy link

Bug Description

Using these rockcraft.yaml parts:

    patches:
        plugin: dump
        source: .

    mariadb:
        after:
            - patches
        plugin: cmake
        source: https://github.com/MariaDB/server.git
        source-type: git
        source-tag: mariadb-10.5.28
        build-packages:
            - bison
            - ccache
            - gnutls-dev
            - libncurses5-dev
            - zlib1g-dev

    scripts:
        plugin: dump
        source: https://github.com/MariaDB/mariadb-docker.git
        source-type: git
        override-build: |
            ls -lh 
            install -D --mode 0755 10.5/docker-entrypoint.sh ${CRAFT_PART_INSTALL}/usr/bin/docker-entrypoint.sh
            install -D --mode 0755 10.5/healthcheck.sh ${CRAFT_PART_INSTALL}/usr/bin/healthcheck.sh

When I make any changes to the scripts part, the mariadb part is rebuilt. As far as I can tell, there is no dependency between scripts and mariadb that could invalidate mariadb in this scenario.

To Reproduce

See the rockcraft.yaml snippet.

Environment

Ubuntu 24.10

rockcraft.yaml

name: mariadb
base: [email protected]
version: "10.5"
summary: MariaDB database server and client
description: |
    MariaDB is a fast, stable and true multi-user, multi-threaded SQL database server.
    SQL (Structured Query Language) is the most popular database query language in the world.
    The main goals of MariaDB are speed, robustness and ease of use.
platforms:
    amd64:

parts:
    patches:
        plugin: dump
        source: .

    mariadb:
        plugin: cmake
        source: https://github.com/MariaDB/server.git
        source-type: git
        source-tag: mariadb-10.5.28
        build-packages:
            - bison
            - ccache
            - gnutls-dev
            - libncurses5-dev
            - zlib1g-dev

    scripts:
        plugin: dump
        source: https://github.com/MariaDB/mariadb-docker.git
        source-type: git
        override-build: |
            ls -lh
            install -D --mode 0755 10.5/docker-entrypoint.sh ${CRAFT_PART_INSTALL}/usr/bin/docker-entrypoint.sh
            install -D --mode 0755 10.5/healthcheck.sh ${CRAFT_PART_INSTALL}/usr/bin/healthcheck.sh

Relevant log output

N/A
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

No branches or pull requests

1 participant