diff options
author | Angelos Evripiotis <jevripiotis@bloomberg.net> | 2018-12-19 17:48:08 +0000 |
---|---|---|
committer | Angelos Evripiotis <angelos.evripiotis@gmail.com> | 2018-12-20 13:59:23 +0000 |
commit | 46efc91dc3c37324903e62648dd1f0dc3b661af1 (patch) | |
tree | 2b83c60b36bc5c545a5e01d0b8f3b69568cbcbc0 /NEWS | |
parent | 7368f569e1fcb0dc8b765e43c811ac314ca5bfbd (diff) | |
download | buildstream-46efc91dc3c37324903e62648dd1f0dc3b661af1.tar.gz |
BREAK: remove auto-init behaviour
In the event that the project could not be found, stop BuildStream from
asking if the user would like to create a new project. Exit with error
instead, and give a hint to the user in case they're new.
As proposed on the mailing list here:
https://mail.gnome.org/archives/buildstream-list/2018-December/msg00082.html
The new interaction looks like this:
$ bst show nonsuch.bst
No project found. You can create a new project like so:
bst init
Error loading project: None of ['project.conf', '.bstproject.yaml']
found in '/src/temp/blah' or any of its parent directories
Fixes #826
Diffstat (limited to 'NEWS')
-rw-r--r-- | NEWS | 10 |
1 files changed, 8 insertions, 2 deletions
@@ -30,6 +30,12 @@ buildstream 1.3.1 make changes to their .bst files if they are expecting these environment variables to be set. + o BREAKING CHANGE: The 'auto-init' functionality has been removed. This would + offer to create a project in the event that bst was run against a directory + without a project, to be friendly to new users. It has been replaced with + an error message and a hint instead, to avoid bothering folks that just + made a mistake. + o Failed builds are included in the cache as well. `bst checkout` will provide anything in `%{install-root}`. A build including cached fails will cause any dependant elements @@ -67,8 +73,8 @@ buildstream 1.3.1 instead of just a specially-formatted build-root with a `root` and `scratch` subdirectory. - o The buildstream.conf file learned new 'prompt.auto-init', - 'prompt.really-workspace-close-remove-dir', and + o The buildstream.conf file learned new + 'prompt.really-workspace-close-remove-dir' and 'prompt.really-workspace-reset-hard' options. These allow users to suppress certain confirmation prompts, e.g. double-checking that the user meant to run the command as typed. |