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

Options no-depends: true gives error #845

Open
aluakbe opened this issue Nov 15, 2023 · 1 comment
Open

Options no-depends: true gives error #845

aluakbe opened this issue Nov 15, 2023 · 1 comment

Comments

@aluakbe
Copy link

aluakbe commented Nov 15, 2023

BUILD-FILE.md mention options
options:
no-depends: true

When I tried to add this option, but it would give me this error:
Error: failed to load configuration: unable to decode configuration file "melange.yaml": yaml: unmarshal errors:
line 15: cannot unmarshal !!bool true into config.BuildOption
2023/11/15 08:45:50 error during command execution: failed to load configuration: unable to decode configuration file "melange.yaml": yaml: unmarshal errors:
line 15: cannot unmarshal !!bool true into config.BuildOption

@debasishbsws
Copy link
Member

It is working properly. You are getting an yaml: unmarshal errors that means that the yaml configuration has some issue.
I think you are trying to pass the Package Options and by mistake you have placed it in the place of Build Options.

no-depends should be inside package:.
package.no-depends = true/false

package:
  name: abc
  version: "0.0.0"
  ...
  ...
# this should be inside package.
  options:
    no-depends: true
    
environment:
  contents:
    packages:
...
...

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

2 participants