Skip to content

Adding a gitignore for the Crystal language #3362

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

arschles
Copy link

@arschles arschles commented Apr 2, 2020

Reasons for making this change:

There is no current gitignore option for the Crystal language.

Links to documentation supporting these rule changes:

The crystal init command generates a .gitignore file, among others. Out of the box, it looks like the file I've added in this PR. I've copied that .gitignore source into here.

The source code for how the crystal init file is created is here.

If this is a new template:

@thegeorgeous
Copy link

5th time is the charm?

@hahwul
Copy link

hahwul commented May 1, 2023

Shards.lock is also included in the ignore when running with crystal init lib, so wouldn't it be good to include it as an comment in .gitignore?

e.g

/docs/
/lib/
/bin/
/.shards/
*.dwarf

# Write this if you create a library.
# /shard.lock

.gitignore from crystal init lib

# ...

# Libraries don't need dependency lock
# Dependencies will be locked in applications that use them
/shard.lock

Apart from this, I hope gitignore for crystal project will be applied soon 🙏🏼

Copy link

This PR is stale because there have been no updates in 90 days. It will close after 180 days of inactivity. Leave a comment if you want to keep it open 😄

@github-actions github-actions bot added the stale label May 27, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
4 participants