Open mattblovell opened 4 years ago
Thus far, they've been content creating new workspaces via manually-invoked git clone commands, with dispersed group knowledge of what branches of, say, the library a given testbench needs. As the "new guy", I naturally stumbled over this, pulling the wrong branch of things and getting quite confused where I was supposed to find certain code.
Good news: this is exactly the type of problems tsrc is trying to solve :)
I think I saw a feature request for cloning into "." and using relative paths for subdirectories?)
Yeah .. don't do that unless you have to. It was not a really good example.
It would be nice to have a full (i.e., complete) example of using tsrc to [...]
Good idea. I think a "use cases" section in the doc would be useful indeed. Thanks for the suggestion :)
Edit by @dmerejkowsky, so that the task list appears in the issue: Guides to write:
init
andsync
.tsrc/manifest.yml
apply-manifest
before runninggit push
)tsrc foreach
and env variables--all-cloned
,--groups
,--iregex
)tsrc
for CI (reproducible builds, GitLab CI URLS ...)Original issue below
Would it be possible (as time permits, naturally) to add additional examples or use cases to the online documentation. At present, there is a "Basic usage" section, which gets one up and going, and a full "Reference" section.
It would be nice to have a full (i.e., complete) example of using tsrc to
To provide a little more context...
At work, I've only recently switched into a group that is using git. Previously, I used git to maintain my own code even though the company was making use of a different tool. (So, it was set of fairly lonely repositories with only a single contributor!)
My new group typically has workspaces that each consists of files from 3 distinct repos, each cloned into distinct directories:
So, an example workspace would have a structure like
project1-tb
project1-tb/design
project1-tb/library
(The top-level directory has contents other than design/ and library/, but those are all part of that testbench repository.)
Thus far, they've been content creating new workspaces via manually-invoked git clone commands, with dispersed group knowledge of what branches of, say, the library a given testbench needs. As the "new guy", I naturally stumbled over this, pulling the wrong branch of things and getting quite confused where I was supposed to find certain code.
There is also currently no general, automated mechanism by which scripts can pull / create a workspace (for, say, running regression tests on the design).
I think tsrc could be a useful tool for my team, even though it involves a little bit of change. (Normally, the testbench directory inherently forms the start of a new workspace. I think the manifest approach adds another directory, although I think I saw a feature request for cloning into "." and using relative paths for subdirectories?)
So, I'm trying to understand the intended use models for tsrc. Some more complete online examples would also serve as good starting points when I try to introduce tsrc to the team.
Thanks for making tsrc available, BTW!