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

Updating project.conf with a new url does not cause an update of the ostree config #217

Closed
Cynical-Optimist opened this issue Oct 13, 2020 · 11 comments
Labels
bug Something isn't working

Comments

@Cynical-Optimist
Copy link

See original issue on GitLab
In GitLab by [Gitlab user @benjamb] on Jan 26, 2018, 16:05

I initially changed the contents of buildstream.conf to update the push url to 1.2.3.4 from 4.3.2.1, however, I forgot to update the contents of the project.conf. Resulting in the config of my ostree cache looking like:

~/.cache/buildstream/artifacts/ostree$ cat config
[core]
repo_version=1
mode=bare-user

[remote "ssh___push_1_2_3_4_artifacts_"]
url=http://4.3.2.1/artifacts/
gpg-verify=false

however, after updating my project.conf with:

artifacts:
  url: http://1.2.3.4/artifacts/

the ostree config did not update the url of the remote.

[Gitlab user @samthursfield] Took a quick look and pointed out https://github.com/ostreedev/ostree/blob/master/src/libostree/ostree-repo.h#L201, essentially, if a remote exists with that name, it won't do anything.

@Cynical-Optimist Cynical-Optimist added the bug Something isn't working label Oct 13, 2020
@Cynical-Optimist
Copy link
Author

In GitLab by [Gitlab user @benjamb] on Jan 26, 2018, 16:07

< ssam2> i think we'll have to explicitly check if it exists, and if so update the URL in a separate call
< ssam2> which looks annoying actually
< ssam2> probably need to call .get_config(), then set the 'url' key, then call .write_config()

@Cynical-Optimist
Copy link
Author

In GitLab by [Gitlab user @adds68] on Jan 29, 2018, 10:28

There is currently a PR open to get the OSTree API updated, to allow updates:

ostreedev/ostree#1166

@Cynical-Optimist
Copy link
Author

In GitLab by [Gitlab user @juergbi] on Jul 10, 2018, 08:30

mentioned in commit a615e00185b097a3ff3ce15f58e79a803339d9f8

@Cynical-Optimist
Copy link
Author

In GitLab by [Gitlab user @juergbi] on Jul 10, 2018, 08:51

mentioned in commit 76cbcd4ec52c26fc77134533df64c64221610e22

@Cynical-Optimist
Copy link
Author

In GitLab by [Gitlab user @juergbi] on Jul 10, 2018, 17:06

mentioned in commit 8c7ab2f0a3582cde19d5be7f293b47bfa51efbc4

@Cynical-Optimist
Copy link
Author

In GitLab by [Gitlab user @juergbi] on Jul 10, 2018, 18:12

mentioned in commit 1792150b63971e2c4335f785cb9c7da1243cfcc4

@Cynical-Optimist
Copy link
Author

In GitLab by [Gitlab user @juergbi] on Jul 16, 2018, 15:33

mentioned in commit cb79b711f0c653c10d78e44f3154eee4f9d123b9

@Cynical-Optimist
Copy link
Author

In GitLab by [Gitlab user @juergbi] on Jul 16, 2018, 17:25

mentioned in commit fdbc1e33f84fd45f6ac4527846fc3cc8a14d009b

@Cynical-Optimist
Copy link
Author

In GitLab by [Gitlab user @juergbi] on Jul 17, 2018, 06:58

mentioned in commit 1f8b4aa

@Cynical-Optimist
Copy link
Author

In GitLab by [Gitlab user @juergbi] on Jul 17, 2018, 08:59

closed via merge request !337

@Cynical-Optimist
Copy link
Author

In GitLab by [Gitlab user @juergbi] on Jul 17, 2018, 08:59

closed via commit 1f8b4aa

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant