Stream: beginners

Topic: ✔ Is identifying Roc as Elm a GitHub bug


view this post on Zulip Hristo (May 06 2024 at 06:44):

I've just seen a link to @Sam Mohr's AoC 2023 solutions repo, referenced in his Reddit post on Weaver.
Strangely enough GitHub says the repository is made up of Elm and Nix files, even though there isn't a single Elm file.

I've been wondering if this is a GitHub bug or something else?
Could it have to do with the recent import syntax work?

Screenshot_2024-05-06-09-38-50-09_40deb401b9ffe8e1df2f1cc5ba480b12.jpg
Screenshot_2024-05-06-09-39-04-09_40deb401b9ffe8e1df2f1cc5ba480b12.jpg

view this post on Zulip Sam Mohr (May 06 2024 at 06:44):

Nope, that was me

view this post on Zulip Sam Mohr (May 06 2024 at 06:45):

Look at the gitattributes file. Since Roc syntax highlighting didn't exist at the time, I lied to GitHub and said it was Elm. I should get rid of that now that Roc is officially supported

view this post on Zulip Sam Mohr (May 06 2024 at 06:46):

Removed! It says it's all Roc now

view this post on Zulip Hristo (May 06 2024 at 06:47):

Right, I see - I didn't know this trick! Thanks! I've learned something new today!

I was wondering how it might've been possible for this discrepancy to have arisen, but I saw the code was updated 7 hours ago, and my first assumption was that GitHub had gotten confused.

view this post on Zulip Notification Bot (May 06 2024 at 06:48):

Hristo has marked this topic as resolved.

view this post on Zulip Sam Mohr (May 06 2024 at 06:50):

Yeah, not a bad assumption.


Last updated: Jul 06 2025 at 12:14 UTC