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

add-config overwrites host information if the config already exists #82

Open
sbarthelemy opened this issue Apr 21, 2016 · 1 comment
Open

Comments

@sbarthelemy
Copy link

sbarthelemy commented Apr 21, 2016

seen on qibuild master (c88e566)
eg.

$ qibuild add-config toto
$ grep toto -A4 ~/.config/qi/qibuild.xml 
  <config name="toto">
    <env />
    <cmake />
    <profiles />
  </config>
$ qibuild set-host-config toto
$ grep toto -A4 ~/.config/qi/qibuild.xml 
  <config host="true" name="toto">
    <env />
    <cmake />
    <profiles />
  </config>
$ qibuild add-config toto
$ grep toto -A4 ~/.config/qi/qibuild.xml 
  <config name="toto">
    <env />
    <cmake />
    <profiles />
  </config>
@dmerejkowsky
Copy link
Contributor

The workaround is to use qibuild add-config toto --host

The thing is, qibuild add-config ignores any previous settings. This is because sometimes we need to do things like

qibuild add-config foo -GNinja

# Oups, Ninja does not work, let's remove Ninja from the foo config:
qibuild add-config foo

But maybe we need qibuild set-config foo --delete Ninja or something ...

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