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

Incompatible base detection is too strict for non-Ubuntu bases #455

Open
lengau opened this issue Sep 11, 2024 · 1 comment
Open

Incompatible base detection is too strict for non-Ubuntu bases #455

lengau opened this issue Sep 11, 2024 · 1 comment
Labels
Bug Something isn't working triaged

Comments

@lengau
Copy link
Contributor

lengau commented Sep 11, 2024

Bug Description

_validate_build_plan requires the base to be exactly the same, not just the same major version. While this is fine for Ubuntu, for bases like Debian and Almalinux this results in errors like:

2024-08-23 22:30:02.737 Almalinux 9 builds cannot be performed on this Almalinux 9.4 system.

To Reproduce

See: https://github.com/canonical/charmcraft/actions/runs/10532931826/job/29188508635?pr=1824

part yaml

n/a

Relevant log output

2024-08-23 22:30:02.732 Initialising lifecycle manager in /root
2024-08-23 22:30:02.733 Project vars: {'version': 'unversioned'}
2024-08-23 22:30:02.733 Adopting part: None
2024-08-23 22:30:02.734 Using parallel build count of 1 from CPU count
2024-08-23 22:30:02.735 Called not implemented method 'YUMRepository.configure' with name 'charmcraft'
2024-08-23 22:30:02.737 Almalinux 9 builds cannot be performed on this Almalinux 9.4 system.
2024-08-23 22:30:02.737 Detailed information: Builds must be performed on a specific system to ensure that the final artefact's binaries are compatible with the intended execution environment.
2024-08-23 22:30:02.738 Recommended resolution: Run a managed build, or run on a compatible host.
2024-08-23 22:30:02.995 Emitter: Resuming control of the terminal
@lengau lengau added Bug Something isn't working triaged labels Sep 11, 2024
Copy link

Thank you for reporting us your feedback!

The internal ticket has been created: https://warthogs.atlassian.net/browse/CRAFT-3374.

This message was autogenerated

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Bug Something isn't working triaged
Projects
None yet
Development

No branches or pull requests

1 participant