Skip to content

make git optional to support offline and packaged builds#477

Merged
onur-ozkan merged 3 commits intomavlink:masterfrom
Orkavian:support-offline-builds
Mar 19, 2026
Merged

make git optional to support offline and packaged builds#477
onur-ozkan merged 3 commits intomavlink:masterfrom
Orkavian:support-offline-builds

Conversation

@onur-ozkan
Copy link
Copy Markdown
Member

Previously the build script unconditionally required git to update submodules. This breaks offline builds for vendored workspaces and environments without git installed where the files are already present but .git is absent.

The new build flow is as follows:

  • Conditionally run git submodule only if the mavlink directory is a submodule.
  • Check the expected dialects existance and fail if they are missing.

Drops the need for #474

@onur-ozkan onur-ozkan added the kind:improvement Change that makes existing behavior better. label Mar 18, 2026
Previously the build script unconditionally required `git` to update submodules.
This breaks offline builds for vendored workspaces and environments without git
installed where the files are already present but `.git` is absent.

The new build flow is as follows:

- Conditionally run `git submodule` only if the `mavlink` directory is a submodule.
- Check the expected dialects existance and fail if they are missing.

Signed-off-by: Onur Özkan <work@onurozkan.dev>
@onur-ozkan onur-ozkan force-pushed the support-offline-builds branch from 7f463c3 to 9152a5c Compare March 18, 2026 10:33
@onur-ozkan onur-ozkan marked this pull request as draft March 18, 2026 10:38
@onur-ozkan onur-ozkan force-pushed the support-offline-builds branch 2 times, most recently from 63337a9 to fd14d65 Compare March 18, 2026 11:01
Signed-off-by: Onur Özkan <work@onurozkan.dev>
@onur-ozkan onur-ozkan force-pushed the support-offline-builds branch from fd14d65 to 48677ee Compare March 18, 2026 11:04
@onur-ozkan onur-ozkan marked this pull request as ready for review March 18, 2026 11:07
@pv42
Copy link
Copy Markdown
Contributor

pv42 commented Mar 18, 2026

Changes look good, but the build requirements section in readme.md should be updated to reflect that git is no longer requried. Probably easiest to just remove the whole Build requirements section since users either

  • use cargo and already have the definitions
  • use git clone and already have git

Signed-off-by: Onur Özkan <work@onurozkan.dev>
@onur-ozkan
Copy link
Copy Markdown
Member Author

Changes look good, but the build requirements section in readme.md should be updated to reflect that git is no longer requried. Probably easiest to just remove the whole Build requirements section since users either

  • use cargo and already have the definitions
  • use git clone and already have git

Right, it no longer makes sense. Removed it.

@onur-ozkan onur-ozkan merged commit bcaaaad into mavlink:master Mar 19, 2026
50 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

kind:improvement Change that makes existing behavior better.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants