File tree Expand file tree Collapse file tree 3 files changed +1
-22
lines changed
Expand file tree Collapse file tree 3 files changed +1
-22
lines changed Original file line number Diff line number Diff line change 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
Original file line number Diff line number Diff line change 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 .
Original file line number Diff line number Diff 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 > ,
You can’t perform that action at this time.
0 commit comments