Skip to content

Remote platforms - #140

Merged
jwinarske merged 6 commits into
v2.0from
feature/remote-platforms
Jan 22, 2026
Merged

Remote platforms#140
jwinarske merged 6 commits into
v2.0from
feature/remote-platforms

Conversation

@kerberjg

@kerberjg kerberjg commented Oct 24, 2025

Copy link
Copy Markdown
Collaborator

💖 Allows you to include platforms from remote repos via --remote=<git url>
Also:

  • Specify tag/commit: --remote=<git url>#<ref>
  • Specify branch: --remote=<git url>#heads/<branch>

What this does:

  • Clones repository into app/
  • Links app/<your repo>/configs/*.json into configs/remote_*.json

This allows you to include your own configs, patches, platforms, apps, plugins, packages without modifying anything! 🥳

Also includes cross-config envvar append ✨ : if you want to be able to append to an envvar from another config (such as a remote one), you simply declare it as following:

{
  ...
  "env": {
    "+PLUGIN_ARGS": "-DBUILD_SPECIAL_PLUGIN=ON"
    ...

Specifying a separator is also possible, just put it in parenthesis following the +:

{
  ...
  "env": {
    "+(;)EXT_PLUGINS_DIRS": "$FLUTTER_WORKSPACE/app/my_special_plugins/"
    ...

^ this will make sure that a ; is used when concatenating with the previous value (makes sure it's not used at the beginning/end of a string, only in the middle)

@kerberjg kerberjg self-assigned this Oct 24, 2025
@kerberjg kerberjg added the enhancement New feature or request label Oct 24, 2025
@kerberjg kerberjg changed the title Remote platforms Remote platforms (WIP!) Oct 24, 2025
@kerberjg
kerberjg force-pushed the feature/remote-platforms branch 4 times, most recently from a614bd4 to 823669d Compare October 24, 2025 23:22
@jwinarske

Copy link
Copy Markdown
Contributor

@kerberjg As a followup to our discussion. The workspace-automation --config option that exists today is intended to use a different configs folder altogether. Oppose to augmenting, you just cherry pick what you want in your local "configs" path, then pass that path in to the upstream flutter_workspace.py. Flutter_workspace.py can be a symlink in your custom configs folder; which is how I did it for AGL; different targets, etc. Removal of patches/configs should happen in an isolated PR. If the feature is blah, then PR should only cover blah.

@kerberjg
kerberjg force-pushed the feature/remote-platforms branch from 823669d to a627a2e Compare November 21, 2025 12:33
@dl9pf

dl9pf commented Jan 8, 2026

Copy link
Copy Markdown
Contributor

Excellent. Then we can host our configs in our tree. +1 !

@jwinarske

Copy link
Copy Markdown
Contributor

@kerberjg I will merge this without the configs/desktop-homescreen.json changes. Can you remove the changes in configs/desktop-homescreen.json? Once it's merged then you can re-base your feature branch; at which point it should just have changes in configs/desktop-homescreen.json. Thanks!

@kerberjg

Copy link
Copy Markdown
Collaborator Author

@jwinarske sounds good!

@kerberjg
kerberjg force-pushed the feature/remote-platforms branch from a627a2e to e9b5639 Compare January 13, 2026 18:37
@kerberjg

Copy link
Copy Markdown
Collaborator Author

@jwinarske In order for this to work, I have to either:

A: keep some changes in desktop_homescreen.json
B: remove changes in desktop_homescreen.json and make changes to other files

Which one is more preferrable?

@jwinarske

Copy link
Copy Markdown
Contributor

@kerberjg as discussed last week, the goal is to prevent any breaking changes to existing CI/test and simply enable the remote append feature for AGL.

@kerberjg
kerberjg force-pushed the feature/remote-platforms branch from e9b5639 to 39a9e70 Compare January 22, 2026 22:03
@kerberjg kerberjg changed the title Remote platforms (WIP!) Remote platforms + env concatenation Jan 22, 2026
@kerberjg
kerberjg requested a review from jwinarske January 22, 2026 22:47
@kerberjg

Copy link
Copy Markdown
Collaborator Author

@jwinarske Should be ready to go

@kerberjg
kerberjg marked this pull request as ready for review January 22, 2026 22:49
@kerberjg kerberjg changed the title Remote platforms + env concatenation Remote platforms + env append Jan 22, 2026
@kerberjg kerberjg changed the title Remote platforms + env append Remote platforms Jan 22, 2026
@jwinarske
jwinarske merged commit 236733d into v2.0 Jan 22, 2026
15 checks passed
@jwinarske

Copy link
Copy Markdown
Contributor

cc @dl9pf

@jwinarske
jwinarske deleted the feature/remote-platforms branch January 22, 2026 23:47
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

enhancement New feature or request

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants