flox icon indicating copy to clipboard operation
flox copied to clipboard

.gitattributes for .flox

Open ghudgins opened this issue 2 years ago • 3 comments

proposal to add this to the default environment https://github.com/flox/flox-api/blob/244c7d7e9be4eaf2f4b41b8570143e76be182116/.flox/env/.gitattributes

Acceptance Criteria

When I flox init And I ls -la in side the .flox Then I see .gitattributes is present And I see contents https://github.com/flox/flox-api/blob/244c7d7e9be4eaf2f4b41b8570143e76be182116/.flox/env/.gitattributes

ghudgins avatar Jan 16 '24 23:01 ghudgins

I assume this is already addressed? Those links seem to be broken.

mahyarmirrashed avatar Apr 02 '25 22:04 mahyarmirrashed

Oops sorry, those are links to a private repository.

The goal is for flox init to create a .flox/env/.gitattributes with this content:

manifest.lock linguist-generated=true linguist-language=JSON

That tells GitHub (and any other tool that cares) that the file is JSON despite the .lock extension, and that it's generated so it will suppress it in PR diffs by default.

nicklewis avatar Apr 02 '25 22:04 nicklewis

The goal is for flox init to create a .flox/env/.gitattributes with this content:

We have .flox/.gitignore, so would it work to have it at .flox/.gitattributes for consistency?

mkenigs avatar Apr 03 '25 17:04 mkenigs