Skip to content

Commit a43b0fb

Browse files
Nemo157syphar
authored andcommitted
Remove submodules from build process
1 parent 4518064 commit a43b0fb

File tree

3 files changed

+1
-22
lines changed

3 files changed

+1
-22
lines changed

.github/workflows/ci.yml

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -23,8 +23,6 @@ jobs:
2323
runs-on: ubuntu-latest
2424
steps:
2525
- uses: actions/checkout@v3
26-
with:
27-
submodules: true
2826
- id: install
2927
run: |
3028
rustup override set stable
@@ -143,8 +141,6 @@ jobs:
143141

144142
steps:
145143
- uses: actions/checkout@v3
146-
with:
147-
submodules: true
148144
- id: install
149145
run: |
150146
rustup override set stable

.github/workflows/docker.yml

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,8 +8,6 @@ jobs:
88
runs-on: ubuntu-latest
99
steps:
1010
- uses: actions/checkout@v3
11-
with:
12-
submodules: true
1311

1412
- name: Build the Docker image
1513
run: docker build -t docs-rs -f dockerfiles/Dockerfile .

build.rs

Lines changed: 1 addition & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -79,12 +79,7 @@ fn main() -> Result<()> {
7979
write_git_version(out_dir)?;
8080
compile_sass(out_dir)?;
8181
write_known_targets(out_dir)?;
82-
compile_syntax(out_dir).context(
83-
"\
84-
could not compile syntax files\n\n\
85-
Note: you may need to run `git submodule update --init`\
86-
",
87-
)?;
82+
compile_syntax(out_dir).context("could not compile syntax files")?;
8883
Ok(())
8984
}
9085

@@ -191,16 +186,6 @@ fn compile_syntax(out_dir: &Path) -> Result<()> {
191186
parsing::{SyntaxDefinition, SyntaxSetBuilder},
192187
};
193188

194-
if std::fs::metadata("assets/syntaxes").is_err() {
195-
let status = std::process::Command::new("git")
196-
.args(["submodule", "update", "--init"])
197-
.status()
198-
.context("attempting to initialize submodules")?;
199-
if !status.success() {
200-
return Err(anyhow::anyhow!("initializing submodules failed"));
201-
}
202-
}
203-
204189
fn tracked_add_from_folder(
205190
builder: &mut SyntaxSetBuilder,
206191
path: impl AsRef<Path>,

0 commit comments

Comments
 (0)