Commit 24ae367
flatpak: Add explicit package-fallback opt-in for sandboxed source builds
The Flatpak sandbox compiles a full repository checkout but has no Pkl,
so build.rs saw canonical sources present and demanded a
SCE_CLI_GENERATED_INPUT_DIR handoff that the sandbox cannot produce. The
staged cli/package-fallback payload was present but unreachable on that
path.
build.rs now honors SCE_CLI_PACKAGE_FALLBACK as an explicit opt-in that
selects the packaged fallback even when repository sources exist. The
value is parsed strictly ('1'/'true' vs '0'/'false'/empty) and anything
else fails the build, so a stray environment value cannot silently
downgrade a repository build. The missing-handoff error now names the
opt-in as the sandboxed alternative.
The Flatpak module sets the variable in build-options.env, and
static-validate.sh asserts it alongside the existing fallback source
entries so the manifest cannot regress to the unbuildable state.
Co-authored-by: SCE <sce@crocoder.dev>1 parent 0174112 commit 24ae367
8 files changed
Lines changed: 62 additions & 11 deletions
File tree
- cli
- context
- sce
- nix/flatpak
- packaging/flatpak
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
12 | 12 | | |
13 | 13 | | |
14 | 14 | | |
| 15 | + | |
15 | 16 | | |
16 | 17 | | |
17 | 18 | | |
| |||
69 | 70 | | |
70 | 71 | | |
71 | 72 | | |
72 | | - | |
73 | | - | |
74 | | - | |
| 73 | + | |
| 74 | + | |
| 75 | + | |
| 76 | + | |
| 77 | + | |
| 78 | + | |
| 79 | + | |
| 80 | + | |
| 81 | + | |
| 82 | + | |
| 83 | + | |
75 | 84 | | |
76 | 85 | | |
77 | 86 | | |
| |||
86 | 95 | | |
87 | 96 | | |
88 | 97 | | |
| 98 | + | |
| 99 | + | |
| 100 | + | |
| 101 | + | |
| 102 | + | |
| 103 | + | |
| 104 | + | |
| 105 | + | |
| 106 | + | |
| 107 | + | |
| 108 | + | |
| 109 | + | |
| 110 | + | |
| 111 | + | |
| 112 | + | |
| 113 | + | |
89 | 114 | | |
90 | 115 | | |
91 | 116 | | |
92 | | - | |
| 117 | + | |
93 | 118 | | |
94 | 119 | | |
95 | 120 | | |
| |||
740 | 765 | | |
741 | 766 | | |
742 | 767 | | |
743 | | - | |
744 | | - | |
745 | | - | |
| 768 | + | |
| 769 | + | |
| 770 | + | |
746 | 771 | | |
747 | 772 | | |
748 | 773 | | |
| |||
839 | 864 | | |
840 | 865 | | |
841 | 866 | | |
| 867 | + | |
842 | 868 | | |
843 | 869 | | |
844 | 870 | | |
| 871 | + | |
| 872 | + | |
| 873 | + | |
| 874 | + | |
| 875 | + | |
| 876 | + | |
| 877 | + | |
| 878 | + | |
| 879 | + | |
| 880 | + | |
| 881 | + | |
| 882 | + | |
| 883 | + | |
| 884 | + | |
| 885 | + | |
| 886 | + | |
| 887 | + | |
| 888 | + | |
| 889 | + | |
845 | 890 | | |
846 | 891 | | |
847 | 892 | | |
| |||
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
49 | 49 | | |
50 | 50 | | |
51 | 51 | | |
| 52 | + | |
| 53 | + | |
| 54 | + | |
| 55 | + | |
52 | 56 | | |
53 | 57 | | |
54 | 58 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
60 | 60 | | |
61 | 61 | | |
62 | 62 | | |
| 63 | + | |
63 | 64 | | |
64 | 65 | | |
65 | 66 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
17 | 17 | | |
18 | 18 | | |
19 | 19 | | |
| 20 | + | |
20 | 21 | | |
21 | 22 | | |
22 | 23 | | |
| |||
0 commit comments