Zulip Chat Archive

Stream: lean4

Topic: Modifying gitignore on update


Adam Topaz (Nov 17 2023 at 15:51):

When updating mathlib with lake update mathlib in a project that depends on it, I noticed that lake will modify the lean toolchain file automatically which is nice. However, when switching to 4.3.0-rc2 from an older version, it seems that all the build artifacts end up in a new folder called .lake, while .lake is not added to the .gitignore file automatically. This could bite new users.

Should the this update process also add a new line to .gitignore with .lake? What do people think about this?

Scott Morrison (Nov 18 2023 at 02:32):

I'm inclined to say this is a once off (please!?) issue, and the extra complication in the update hook outweighs the total inconvenience.

Adam Topaz (Nov 18 2023 at 02:36):

Yeah I guess it won’t be an issue for too long. I just think it’s likely to bite some new users

Adam Topaz (Nov 18 2023 at 02:43):

Anyway, having a non-optimal gitignore on some third party repos isn’t much of a problem anyway. I’ll just make sure to mention this to my students


Last updated: Dec 20 2023 at 11:08 UTC