-
Notifications
You must be signed in to change notification settings - Fork 55
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
workspaces: allow filtering out files from workspace root #1287
Comments
Would something like ,, |
Or do you want to still be able to clone with only the :workspace filter? |
I think it would, but the URL would become quite messy. We want to exclude I don't want to push the burden of specifying these filters to people cloning it, this should be possible to specify from |
And an exclude filter inside the workspace.josh doesn't work, even making sure to target the files as if the workspace folder was the root? |
Another option right now could be to add this filter as an implicit prefix to all clones. There is a CLI option for this. That would mean you can never get those files through josh tho. Be aware this prefix only applies to git clones, not to graphql queries. |
Filtering No need to rush, let's check this peacefully once you have a bigger computer again ;-) |
Currently there is no way to do this unfortunatly. It is good to know though that you are having this use case as we are investigating a new feature for workspaces anyway that will allow "pre-selecting" files from the tree before applying general filters. So knowing about this we can make sure your case is covered. |
The other way around we have it currently also causes problems - people checking out a workspace, and then pushing back their commits now always include a change to a This was a plain commit adding a
(using https://code.tvl.fyi/depot.git:workspace=views/tvix.git at 9b90ccb7089b1e21763126336125cbd354c20f00). On the other side (in Gerrit), this showed up as a commit also editing |
I want to move tvix from a separate
views/tvix/workspace.josh
file to aworkspace.json
file shipped inside the directory, mostly to remove filter ambiguity as described in #1155 (comment), as well as aligning more with how josh seems to be used elsewhere.However, I need to exclude some files from the
tvix
directory theworkspace.josh
would then be in. Specifically, mostdefault.nix
files in there should be excluded (see here).It seems it's not possible to customize the implicit
:/<workspace root>
filter, so that certain files are excluded, at least not while just usingworkspace=tvix
as the only filter parameter (during clones).The text was updated successfully, but these errors were encountered: