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
[attr]unity_yaml -text merge=unityyamlmerge diff eol=lf not allowed: Workspace/Cartographer/.gitattributes:54
One workaround I can think of is to rename those to eg josh.gitattributes in the main repo, then rename them back in the filter. It feels icky though, those attributes wouldn't then be processed at the monorepo level.
Another idea would be to define the macros in a separate file, sitting at the root (it would make sense to share the macros anyway, though I can imagine there would be exceptions down the line), then somehow reference those in the per-workspace gitattributes... I don't know how to do that though 😅.
Has anyone run into this? Ideas?
The text was updated successfully, but these errors were encountered:
I have a monorepo where each workspace has a .gitattributes in its own subfolder:
monorepo:
becomes workspace-A:
Problem: those gitattributes files define custom macros, which are only allowed in top-level gitattributes files, so in the main monorepo, I'm getting warnings like this:
One workaround I can think of is to rename those to eg josh.gitattributes in the main repo, then rename them back in the filter. It feels icky though, those attributes wouldn't then be processed at the monorepo level.
Another idea would be to define the macros in a separate file, sitting at the root (it would make sense to share the macros anyway, though I can imagine there would be exceptions down the line), then somehow reference those in the per-workspace gitattributes... I don't know how to do that though 😅.
Has anyone run into this? Ideas?
The text was updated successfully, but these errors were encountered: