You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
A call to tbUseProject('foo') still loads Lab-Matlab-Control on the stable branch.
What is the recommended approach for my needs?
Changing the type of the dependency from include to git would require me to manually enter all the dependencies of Lab-Matlab-Control in the foo.json file. If there is another solution, I would prefer it.
The text was updated successfully, but these errors were encountered:
I suspect that our design of how to recurse through "includes" is not perfect - it's actually a little tricky to decide exactly what the inheritance rules should be, but I agree that it would make sense if the flavor field in an entry that was an include overrode the flavor field of what was being included.
I am not sure how hard it would be to make that happen. Will try to look.
In the meantime, an approach that would be less irritating than having to paste in the whole included record into each case might be to create a record "Lab-Matlab-Control-BranchName" and include that in Foo.json. Then specify the desired branch in "Lab-Matlab-Control-BranchName".
In our lab, we take a slightly different approach to this, but I can see how one might not like it. On each computer that uses particular branches, we simply check out that branch and let it sit. TbTb does not override the branch checked out if flavor is empty, so this sits stably until someone changes the branch. But it's true that this is not as transparent as one might like, and subject to someone coming along and changing something without telling someone.
The toolbox
Lab-Matlab-Control
is currently listed in the public ToolboxRegistry with the stable flavor.Specifying a different flavor for this toolbox in another project's
.json
config file does not override the setting from the registry.More precisely, if I have a TbTb project named
foo
with afoo.json
file that looks like the following:A call to
tbUseProject('foo')
still loadsLab-Matlab-Control
on thestable
branch.What is the recommended approach for my needs?
Changing the
type
of the dependency frominclude
togit
would require me to manually enter all the dependencies ofLab-Matlab-Control
in thefoo.json
file. If there is another solution, I would prefer it.The text was updated successfully, but these errors were encountered: