Skip to content
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

fix: Ensure committed files are normalized to LF #361

Merged
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
19 changes: 19 additions & 0 deletions .gitattributes
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
# Pattern syntax:
# https://git-scm.com/docs/gitignore#_pattern_format

# Normalize line endings of all non-binary files to LF upon check-in (`git add` / `git commit`):
* text=auto

# Use `eol=lf` / `eol=crlf` to enforce specific line endings on checkout for compatibility:
# https://www.git-scm.com/docs/gitattributes/#_eol
# NOTE:
# - This setting implies the `text` attribute.
# - `eol=lf` may not work as expected, if a file was committed with CRLF prior to the introduction of `.gitattribtues`.
#
# Relevant files for this setting:
# - `.sh` (LF) / `.bat` (CRLF) and similar scripts that are platform specific.
# - Scripts that utilize a shebang (`#!/usr/bin/env python3`) to hint the interpreter to run.
# - `Dockerfile` (base image environment may require LF):
# https://github.com/EricLBuehler/mistral.rs/pull/361

Dockerfile* eol=lf
2 changes: 1 addition & 1 deletion .github/workflows/build_cuda_all.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,7 @@ jobs:
uses: docker/build-push-action@v4
with:
context: .
file: Dockerfile-cuda-all
file: Dockerfile.cuda-all
push: ${{ github.event_name != 'pull_request' }}
platforms: 'linux/amd64'
tags: ${{ steps.meta-cuda.outputs.tags }}
Expand Down
File renamed without changes.
Loading