.gitattributes export-ignore breaks flake dependency

It seems like all non flake inputs to a flake that use git
i.e:
something.url = github:something/something,
something.url = git+file:///something/something,
etc

depend on git-archive in some way,
which breaks dependencies if the repo contains a .gitattributes with an export-ignore attribute set for any vital part of the repository.
Is there any workarround i could use?

You’ll have to use a different input type nix flake - Nix Reference Manual

Also check if there’s maybe a way to ignore export-ignore in the git params. (not nix specific)