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

Use yaml.safe_load() to fix deprecation and crash #34

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

NeroBurner
Copy link
Contributor

@NeroBurner NeroBurner commented Jul 17, 2024

The yaml.load() function without a Loader keyword is deprecated since pyyaml 5.1 and removed with pyyaml 6.0.

Ubuntu 24.04 noble ships with pyyaml 6.0.1 breaking python-aptly and aptly-publisher.

Fix it by using the recommended yaml.safe_load() function.

Fixes: #32

Edit: tested against aptly 1.5.0+162+g8029305d on Ubuntu 20.04, 22.04, 24.04

Ubuntu 18.04 is broken since #30 (which fixed the newer Ubuntu versions), so for me this is ok

edit: just to be clear, the only thing not working on Ubuntu 18.04 with the newest master branch is publish --recreate, just publish still works

The `yaml.load()` function without a `Loader` keyword is deprecated
since `pyyaml 5.1` and removed with `pyyaml 6.0`.

Ubuntu 24.04 noble ships with `pyyaml 6.0.1` breaking `python-aptly` and
`aptly-publisher`.

Fix it by using the recommended `yaml.safe_load()` function.

Fixes: tcpcloud#32
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.

Ubuntu 24.04 noble errors at loading yaml
1 participant