-
Notifications
You must be signed in to change notification settings - Fork 184
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
The yaml parser in ocis is broken #6510
Comments
It possibly lost compatibility for Yaml 1.1 and only supports Yaml 1.2 now, where |
@ScharfViktor To narrow down, does this only happen for the ocis:latest image or is ocis:3.0.0 affected as well? |
in the |
Ok. This seems to be introduced with the recent update of github.com/gookit/config/v2 from 2.1.8 to 2.2.2 (#6493) where they replaced https://github.com/go-yaml/yaml with https://github.com/goccy/go-yaml (gookit/config#119) goccy/go-yaml aims to only support yaml 1.2 Not sure there's much we should do about that. Other that fixing the fallout. At least I think we should NOT downgrade github.com/gookit/config/v2. @mmattel What's the best way to get this mentioned in the release/upgrade notes for the next release (3.1?) ? |
To make it work on the web I can change should I do it? @kulmann |
@ScharfViktor can you double check in both folders of the deployment examples in master and confirm that they are ok or fix them in case a fix is needed? |
As we already discussed: yes. There's no other way if it stays like this in oCIS. Maybe fix it in stable-7.0 branch even (and we'll forward port it to master eventually) Also consider adding the yaml 1.2 header as also discussed |
Oops, I accidentally corrected that already here owncloud/web@aa1f77e#diff-0b1fc5528882240b213b1ce08ff3b354116c02547b954c4741ee8f731c3871f4 |
let's consider it done. |
I don't think we'll fix it in ocis (though it's not on me to decide that). But we should mention in the release notes or upgrade docs that we only support yaml 1.2 in config files from now on. Other users might run into similar issues. |
I think integers are broken as well - I updated a 2.0.0 bare metal installation with s3ng to 3.0.0 and got the following and a failed start:
|
@tekeous Thanks for reporting. The problem you're seeing seems to be unrelated to this specific issue. As it is already present in 3.0.0. It is not caused by the recent update gookit/config/v2 update to 2.1.8). I'll move it to a new issue for properly tracking it. |
it happens because of different versions of yaml or something else, but the
yes
value in theyml
file causes the ocis to failSteps:
ocis
latest imageocis
using https://github.com/owncloud/web/blob/master/docker-compose.ymlActual: ocis container doesn't start until you change
yes
totrue
here https://github.com/owncloud/web/blob/master/dev/docker/ocis.idp.config.yaml#L5-L6log
cc @dschmidt
The text was updated successfully, but these errors were encountered: