Hi all,
This is a write up of a discussion which happened at the Manchestergathering after originally being raised at [1].If we wish bst to follow the principle of least surprise, we shouldminimize the number of operations performed implicitly when invokingbst commands. To this end, it is proposed here that we change thedefault behaviour of bst commands such that sources are not fetchedunless this is explicitly requested.
Note that as this proposal would alter BuildStream's cli, anyimplementation should be completed prior to the 1.4 release.Current Behaviour------------------------------Currently BuildStream will automatically fetch sources which are notcached when running the following bst commands:- workspace open- workspace reset- source-bundle- shell (with --build option)- buildThe exception to the above is junction elements, which are fetched atload time by build, fetch, track, pull, push and checkout.Proposed Behaviour---------------------------------Only `bst build` should fetch sources by default. There is an optionlike --fetch for the remaining commands. These should only fetchelements if this option is present.
If unfetched sources are required and the --fetch flag is not given,the command should should fail and recommend the user run a bst fetchcommand or the repeat the command with the --fetch option.
Alternatively,if running in interactive mode, the user should be presented with theoption to fetch, continue, quit etc.
_______________________________________________Best regards,Phil
BuildStream-list mailing list
BuildStream-list gnome org
https://mail.gnome.org/mailman/listinfo/buildstream-list