-
Notifications
You must be signed in to change notification settings - Fork 217
Expand file tree
/
Copy path.gitattributes
More file actions
60 lines (54 loc) · 2.71 KB
/
Copy path.gitattributes
File metadata and controls
60 lines (54 loc) · 2.71 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
#**
# Line-ending policy.
#
# Git for Windows defaults to `core.autocrlf=true`, which rewrites every text
# file to CRLF on checkout. Two OpenBitFun paths break silently when that happens:
#
# 1. `src/apps/relay-server/*.sh` is embedded into the Desktop binary with
# `include_str!` and uploaded verbatim to the relay host. A CR turns each
# blank line into `$'\r': command not found`, and `set -e` aborts the
# one-click deploy on the first one.
# 2. Rust raw string literals (`r#"..."#`) that hold remote bash carry the
# checkout's CRLF into the generated scripts the same way.
#
# Force LF for everything that has to run on a POSIX host, regardless of where
# it was checked out. Windows-only scripts (`*.ps1`) are left alone — PowerShell
# reads LF fine and pinning them would churn every non-Windows working tree.
#**
/.gitattributes text eol=lf
*.sh text eol=lf
*.bash text eol=lf
*.rs text eol=lf
*.py text eol=lf
*.mjs text eol=lf
*.cjs text eol=lf
# Generated frontend/mobile contracts compare exact file contents. Keep both
# their source fragments and generated outputs stable on every checkout so a
# Windows or hosted runner cannot report newline-only generated drift.
MiniApp/Demo/git-graph/source/** text eol=lf
src/crates/assembly/core/builtin_skills/miniapp-dev/references/examples/demo-git-graph/source/** text eol=lf
src/apps/mobile/**/*.json text eol=lf
src/apps/mobile/**/*.js text eol=lf
src/apps/mobile/**/*.ets text eol=lf
src/apps/mobile/**/*.kt text eol=lf
src/apps/mobile/**/*.swift text eol=lf
# The Product Operation Registry embeds and compares this generated JSON byte for byte.
src/crates/contracts/product-domains/src/generated/remote-surface-registry.json text eol=lf
# models.dev provenance hashes exact redistributed bytes. Keep these assets
# stable across checkout platforms so the offline release check is reproducible.
src/crates/services/services-integrations/assets/models-dev.json text eol=lf
src/crates/services/services-integrations/assets/models-dev.LICENSE.txt text eol=lf
src/crates/services/services-integrations/assets/models-dev.provenance.json text eol=lf
# The Gradle wrapper is an extensionless POSIX shell script, so the `*.sh` rule
# above does not cover it. Its `.bat` sibling is the mirror case: cmd.exe needs
# CRLF. The wrapper jar is binary and must never be filtered.
gradlew text eol=lf
gradlew.bat text eol=crlf
*.jar binary
Dockerfile text eol=lf
Dockerfile.* text eol=lf
*.Dockerfile text eol=lf
.dockerignore text eol=lf
docker-compose.yml text eol=lf
docker-compose.*.yml text eol=lf
Caddyfile text eol=lf