-
Notifications
You must be signed in to change notification settings - Fork 2.4k
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
libpod.conf runtimes section #3095
Comments
We need to do something about the |
Sure, yeah, that's definitely better. I don't know enough about the TOML format to comment on how we might do that in a backwards-compatible manner though. Hopefully it's possible with the dotted syntax? |
Scanning the toml key docs, I think it should be equivalent if we convert
to
with the main difference being that it doesnt continue consuming lines for the runtimes table. |
As a side note, I think it would be helpful to add a step to the CI that tests |
Naively trying that change, seems like it doesnt work: |
Experiencing this on Arch Linux as well, latest version
|
We're planning on pushing a 1.3.1 soon anyways (had some serious pod-related bugs), so we'll see about getting this patched and included as well. |
Fixing this in a more future-proof way is not promising. TOML does not have syntax for end-of-table, and dotted syntax does not seem to be supported for this case. Best way forward seems to be to remove anything before the |
#3116 to fix |
Is it possible to switch to |
Tried it, and it didn't work - same "no periods in bare keys" errors |
Ah, did not realize this was newly added to the TOML spec. The relevant parser issue is BurntSushi/toml#242. We can probably just leave the comment for now, and when that lands we can upgrade. Alternatively some other parsers have added support for dotted keys (e.g. pelletier/go-toml#260), but I think it's sufficient to put a band-aid on this and wait for our parser to add support. |
Closing for now as #3116 landed |
Is this a BUG REPORT or FEATURE REQUEST? (leave only one on its own line)
/kind bug
Description
The new
events_logger
config param was added to libpod.conf at the end of the file, which causes it to be parsed as part of the [runtimes] block above it, leading to a type error on parsing.This is at least the second time something has been appended to the end of libpod.conf, breaking the [runtimes] section. Could we maybe add a comment in there so we can prevent this in the future? Or is there some other toml syntax we can use to express the runtimes section, maybe something like
runtimes.runc = [...]
, that ends the table? Thankfully in this case it led to a type error so didn't go unnoticed, but it would be bad if someone appended a string slice param at the end and it silently just got sucked into the runtimes map.Steps to reproduce the issue:
podman info
Describe the results you received:
Describe the results you expected:
The usual podman info output
Output of
podman version
:Output of
podman info --debug
:The text was updated successfully, but these errors were encountered: