gitmodules: Disable update
to prevent cloning on cargo checkout (#808)
When using a `git` reference on this repo, `cargo` will unnecessarily clone the `Vulkan-Headers` submodule (which is only needed by maintainers together with the `generator`). By setting the update mode to `none` (https://git-scm.com/docs/gitmodules#Documentation/gitmodules.txt-submoduleltnamegtupdate) this is disabled, and `git submodule update` will now also no longer fetch/clone/update the repository unless `--checkout` is used (https://git-scm.com/docs/git-submodule#Documentation/git-submodule.txt-checkout). I.e. running `cargo update` on a repo with a `git` dependency on `ash`: Updating git repository `https://github.com/ash-rs/ash` Skipping git submodule `https://github.com/KhronosGroup/Vulkan-Headers` due to update strategy in .gitmodules
This commit is contained in:
parent
f5e7606c03
commit
4180359ba7
5
.github/workflows/ci.yml
vendored
5
.github/workflows/ci.yml
vendored
|
@ -32,8 +32,9 @@ jobs:
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v1
|
- uses: actions/checkout@v1
|
||||||
with:
|
- name: Checkout submodule
|
||||||
submodules: true
|
# Manually update submodules with --checkout because they are configured with update=none and will be skipped otherwise
|
||||||
|
run: git submodule update --recursive --init --force --checkout
|
||||||
- name: Run generator
|
- name: Run generator
|
||||||
run: cargo run -p generator
|
run: cargo run -p generator
|
||||||
- name: Diff autogen result
|
- name: Diff autogen result
|
||||||
|
|
1
.gitmodules
vendored
1
.gitmodules
vendored
|
@ -1,3 +1,4 @@
|
||||||
[submodule "generator/Vulkan-Headers"]
|
[submodule "generator/Vulkan-Headers"]
|
||||||
path = generator/Vulkan-Headers
|
path = generator/Vulkan-Headers
|
||||||
url = https://github.com/KhronosGroup/Vulkan-Headers
|
url = https://github.com/KhronosGroup/Vulkan-Headers
|
||||||
|
update = none
|
||||||
|
|
Loading…
Reference in a new issue