AppFlowy-IO / AppFlowy

Bring projects, wikis, and teams together with AI. AppFlowy is an AI collaborative workspace where you achieve more without losing control of your data. The best open source alternative to Notion.
https://www.appflowy.io
GNU Affero General Public License v3.0
57.02k stars 3.73k forks source link

[Bug] Error on building from docker image appflowy/appflowy:latest #704

Closed getWatermelon closed 10 months ago

getWatermelon commented 2 years ago

Describe the bug Error happens on building docker image appflowy/appflowy:latest using docker-compose file from repository.

To Reproduce Build the docker image

docker-compose build --build-arg uid=$(id -u) --build-arg gid=$(id -g)

Terminal output:

[+] Building 702.6s (23/29)                                                                                             
 => [internal] load build definition from Dockerfile                                                               0.1s
 => => transferring dockerfile: 1.98kB                                                                             0.0s
 => [internal] load .dockerignore                                                                                  0.0s
 => => transferring context: 2B                                                                                    0.0s
 => [internal] load metadata for docker.io/archlinux/archlinux:base-devel                                          1.5s
 => [internal] load metadata for docker.io/archlinux/archlinux:latest                                              1.5s
 => [builder  1/16] FROM docker.io/archlinux/archlinux:base-devel@sha256:f84fe9d90252d0a5d1191a1c7997e5de3c5a5777  0.0s
 => [stage-1 1/9] FROM docker.io/archlinux/archlinux@sha256:eed36e7d83aa0c133296f3558f661b4d4d4eeae72597aaa88592a  0.0s
 => CACHED [stage-1 2/9] RUN pacman -Syy &&     pacman -Syu --needed --noconfirm xdg-user-dirs &&     pacman -Scc  0.0s
 => CACHED [stage-1 3/9] RUN xdg-user-dirs-update                                                                  0.0s
 => CACHED [builder  2/16] RUN pacman -Syy                                                                         0.0s
 => CACHED [builder  3/16] RUN pacman -Syu --needed --noconfirm git xdg-user-dirs                                  0.0s
 => CACHED [builder  4/16] RUN useradd --system --create-home makepkg   && echo "makepkg ALL=(ALL:ALL) NOPASSWD:A  0.0s
 => CACHED [builder  5/16] WORKDIR /home/makepkg                                                                   0.0s
 => CACHED [builder  6/16] RUN git clone https://aur.archlinux.org/yay.git   && cd yay   && makepkg -sri --needed  0.0s
 => CACHED [builder  7/16] RUN yay -S --noconfirm curl base-devel sqlite openssl clang cmake ninja pkg-config gtk  0.0s
 => CACHED [builder  8/16] RUN xdg-user-dirs-update                                                                0.0s
 => CACHED [builder  9/16] RUN curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | sh -s -- -y             0.0s
 => CACHED [builder 10/16] RUN source $HOME/.cargo/env && rustup toolchain install stable && rustup default stabl  0.0s
 => CACHED [builder 11/16] RUN git clone https://github.com/flutter/flutter.git $HOME/.local/flutter               0.0s
 => CACHED [builder 12/16] RUN flutter channel stable                                                              0.0s
 => CACHED [builder 13/16] RUN flutter config --enable-linux-desktop                                               0.0s
 => CACHED [builder 14/16] RUN flutter doctor                                                                      0.0s
 => CACHED [builder 15/16] RUN dart pub global activate protoc_plugin                                              0.0s
 => ERROR [builder 16/16] RUN git clone https://github.com/AppFlowy-IO/appflowy.git && cd appflowy/frontend &&   700.9s
------
 > [builder 16/16] RUN git clone https://github.com/AppFlowy-IO/appflowy.git && cd appflowy/frontend && source $HOME/.cargo/env && cargo install --force cargo-make && cargo install --force duckscript_cli && cargo make flowy_dev && cargo make -p production-linux-x86 appflowy-linux:
#0 0.311 Cloning into 'appflowy'...
#0 5.603     Updating crates.io index
#0 54.62  Downloading crates ...
#0 56.27   Downloaded cargo-make v0.35.15
#0 56.65   Installing cargo-make v0.35.15
#0 57.65  Downloading crates ...
#0 58.14   Downloaded base64 v0.13.0
#0 58.17   Downloaded typenum v1.15.0
#0 58.18   Downloaded tinyvec v1.6.0
#0 58.20   Downloaded serde_ignored v0.1.4
#0 58.21   Downloaded bytes v1.2.0
#0 58.26   Downloaded cc v1.0.73
#0 58.29   Downloaded aho-corasick v0.5.3
#0 58.30   Downloaded which v4.2.5
#0 58.31   Downloaded duckscript v0.7.3
#0 58.36   Downloaded cargo-platform v0.1.2
#0 58.36   Downloaded cargo_metadata v0.15.0
#0 58.37   Downloaded camino v1.0.9
#0 58.38   Downloaded aho-corasick v0.7.18
#0 58.43   Downloaded bstr v0.2.17
#0 58.47   Downloaded adler v1.0.2
#0 58.48   Downloaded dirs-next v2.0.0
#0 58.48   Downloaded digest v0.10.3
#0 58.49   Downloaded crypto-common v0.1.6
#0 58.49   Downloaded crc32fast v1.3.2
#0 58.49   Downloaded autocfg v1.1.0
#0 58.50   Downloaded attohttpc v0.19.1
#0 58.51   Downloaded uname v0.1.1
#0 58.52   Downloaded utf8-ranges v0.1.3
#0 58.53   Downloaded unicode-bidi v0.3.8
#0 58.53   Downloaded encoding-index-simpchinese v1.20141219.5
#0 58.54   Downloaded syn v1.0.98
#0 58.58   Downloaded untrusted v0.7.1
#0 58.58   Downloaded winapi-build v0.1.1
#0 58.59   Downloaded wildmatch v2.1.1
#0 58.59   Downloaded url v2.2.2
#0 58.60   Downloaded either v1.7.0
#0 58.61   Downloaded colored v2.0.0
#0 58.63   Downloaded duckscriptsdk v0.8.13
#0 58.77   Downloaded webpki-roots v0.22.4
#0 58.78   Downloaded webpki v0.22.0
#0 58.80   Downloaded whoami v1.2.1
#0 58.80   Downloaded dirs-sys-next v0.1.2
#0 58.80   Downloaded unicode-normalization v0.1.21
#0 58.81   Downloaded form_urlencoded v1.0.1
#0 58.82   Downloaded tinyvec_macros v0.1.0
#0 58.82   Downloaded winapi v0.2.8
#0 58.87   Downloaded ignore v0.4.18
#0 58.87   Downloaded ftp v3.0.1
#0 58.88   Downloaded glob v0.3.0
#0 58.88   Downloaded miniz_oxide v0.5.3
#0 58.89   Downloaded indexmap v1.9.1
#0 58.90   Downloaded encoding_index_tests v0.1.4
#0 58.90   Downloaded home v0.5.3
#0 58.90   Downloaded generic-array v0.14.5
#0 58.91   Downloaded flate2 v1.0.24
#0 58.92   Downloaded idna v0.2.3
#0 58.94   Downloaded ctrlc v3.2.2
#0 58.94   Downloaded chrono v0.2.25
#0 58.95   Downloaded block-buffer v0.10.2
#0 58.95   Downloaded cpufeatures v0.2.2
#0 58.96   Downloaded time v0.1.44
#0 58.96   Downloaded thread_local v1.1.4
#0 58.96   Downloaded heck v0.4.0
#0 58.97   Downloaded atty v0.2.14
#0 58.97   Downloaded encoding v0.2.33
#0 58.98   Downloaded crossbeam-utils v0.8.11
#0 58.99   Downloaded walkdir v2.3.2
#0 58.99   Downloaded version_check v0.9.4
#0 59.00   Downloaded encoding-index-tradchinese v1.20141219.5
#0 59.01   Downloaded cfg-if v1.0.0
#0 59.01   Downloaded matches v0.1.9
#0 59.01   Downloaded fnv v1.0.7
#0 59.02   Downloaded unicode-ident v1.0.2
#0 59.02   Downloaded encoding-index-korean v1.20141219.5
#0 59.03   Downloaded encoding-index-singlebyte v1.20141219.5
#0 59.03   Downloaded encoding-index-japanese v1.20141219.5
#0 59.05   Downloaded lenient_semver_version_builder v0.4.2
#0 59.05   Downloaded getrandom v0.2.7
#0 59.09   Downloaded fern v0.6.1
#0 59.13   Downloaded memchr v2.5.0
#0 59.14   Downloaded kernel32-sys v0.2.2
#0 59.16   Downloaded lenient_semver_parser v0.4.2
#0 59.17   Downloaded memchr v0.1.11
#0 59.19   Downloaded num v0.1.42
#0 59.20   Downloaded num-iter v0.1.43
#0 59.20   Downloaded log v0.4.17
#0 59.22   Downloaded rand_chacha v0.3.1
#0 59.22   Downloaded rand_core v0.6.3
#0 59.23   Downloaded once_cell v1.13.0
#0 59.24   Downloaded num-traits v0.2.15
#0 59.25   Downloaded regex-syntax v0.3.9
#0 59.26   Downloaded num_cpus v1.13.1
#0 59.27   Downloaded num-integer v0.1.45
#0 59.27   Downloaded rand v0.8.5
#0 59.30   Downloaded rustls v0.20.6
#0 59.35   Downloaded ryu v1.0.10
#0 59.37   Downloaded regex v1.6.0
#0 59.40   Downloaded globset v0.4.9
#0 59.45   Downloaded nom v1.2.4
#0 59.46   Downloaded lazy_static v1.4.0
#0 59.46   Downloaded same-file v1.0.6
#0 59.47   Downloaded percent-encoding v2.1.0
#0 59.47   Downloaded http v0.2.8
#0 59.49   Downloaded fs_extra v1.2.0
#0 59.49   Downloaded regex v0.1.80
#0 59.52   Downloaded semver v1.0.12
#0 59.53   Downloaded sct v0.7.0
#0 59.54   Downloaded sha2 v0.10.2
#0 59.55   Downloaded serde_json v1.0.82
#0 59.58   Downloaded bitflags v1.3.2
#0 59.59   Downloaded serde_derive v1.0.140
#0 59.60   Downloaded toml v0.5.9
#0 59.61   Downloaded thread-id v2.0.0
#0 59.62   Downloaded thread_local v0.2.7
#0 59.62   Downloaded spin v0.5.2
#0 59.63   Downloaded serde v1.0.140
#0 59.64   Downloaded quote v1.0.20
#0 59.66   Downloaded proc-macro2 v1.0.40
#0 59.67   Downloaded ppv-lite86 v0.2.16
#0 59.68   Downloaded meval v0.2.0
#0 59.69   Downloaded hashbrown v0.12.3
#0 59.70   Downloaded java-properties v1.4.1
#0 59.71   Downloaded itoa v1.0.2
#0 59.74   Downloaded lenient_semver v0.4.2
#0 59.76   Downloaded nix v0.24.2
#0 59.80   Downloaded libc v0.2.126
#0 59.87   Downloaded regex-syntax v0.6.27
#0 60.07   Downloaded lazy_static v0.1.16
#0 60.42   Downloaded git_info v0.1.2
#0 60.48   Downloaded cliparser v0.1.2
#0 61.19   Downloaded run_script v0.9.0
#0 61.23   Downloaded rust_info v0.3.2
#0 61.49   Downloaded fsio v0.3.1
#0 61.57   Downloaded shell2batch v0.4.4
#0 61.62   Downloaded envmnt v0.10.0
#0 61.69   Downloaded ring v0.16.20
#0 61.90   Downloaded ci_info v0.14.5
#0 62.09    Compiling libc v0.2.126
#0 62.09    Compiling cfg-if v1.0.0
#0 62.22    Compiling proc-macro2 v1.0.40
#0 62.84    Compiling unicode-ident v1.0.2
#0 62.95    Compiling quote v1.0.20
#0 63.16    Compiling syn v1.0.98
#0 63.55    Compiling autocfg v1.1.0
#0 63.88    Compiling serde_derive v1.0.140
#0 64.51    Compiling serde v1.0.140
#0 64.54    Compiling once_cell v1.13.0
#0 65.05    Compiling cc v1.0.73
#0 65.17    Compiling memchr v2.5.0
#0 65.78    Compiling ppv-lite86 v0.2.16
#0 66.54    Compiling winapi-build v0.1.1
#0 66.89    Compiling encoding_index_tests v0.1.4
#0 67.02    Compiling log v0.4.17
#0 67.53    Compiling version_check v0.9.4
#0 68.09    Compiling typenum v1.15.0
#0 68.44    Compiling semver v1.0.12
#0 69.14    Compiling spin v0.5.2
#0 69.36    Compiling untrusted v0.7.1
#0 69.47    Compiling tinyvec_macros v0.1.0
#0 69.63    Compiling regex-syntax v0.6.27
#0 69.74    Compiling winapi v0.2.8
#0 69.98    Compiling fnv v1.0.7
#0 70.19    Compiling crc32fast v1.3.2
#0 70.76    Compiling itoa v1.0.2
#0 70.95    Compiling matches v0.1.9
#0 71.10    Compiling adler v1.0.2
#0 71.44    Compiling crossbeam-utils v0.8.11
#0 71.88    Compiling lazy_static v1.4.0
#0 72.03    Compiling percent-encoding v2.1.0
#0 72.90    Compiling rustls v0.20.6
#0 73.28    Compiling serde_json v1.0.82
#0 74.03    Compiling unicode-bidi v0.3.8
#0 77.82    Compiling regex-syntax v0.3.9
#0 90.50    Compiling camino v1.0.9
#0 91.72    Compiling bytes v1.2.0
#0 94.90    Compiling utf8-ranges v0.1.3
#0 95.19    Compiling same-file v1.0.6
#0 95.63    Compiling ryu v1.0.10
#0 95.73    Compiling hashbrown v0.12.3
#0 96.56    Compiling either v1.7.0
#0 97.00    Compiling bitflags v1.3.2
#0 97.31    Compiling cpufeatures v0.2.2
#0 97.43    Compiling wildmatch v2.1.1
#0 97.51    Compiling lazy_static v0.1.16
#0 97.74    Compiling nom v1.2.4
#0 98.61    Compiling glob v0.3.0
#0 101.4    Compiling fs_extra v1.2.0
#0 102.6    Compiling whoami v1.2.1
#0 103.0    Compiling home v0.5.3
#0 103.4    Compiling base64 v0.13.0
#0 103.6    Compiling heck v0.4.0
#0 104.5    Compiling cliparser v0.1.2
#0 105.2    Compiling git_info v0.1.2
#0 107.1    Compiling rust_info v0.3.2
#0 108.9    Compiling num-traits v0.2.15
#0 109.2    Compiling num-integer v0.1.45
#0 109.2    Compiling num-iter v0.1.43
#0 109.6    Compiling indexmap v1.9.1
#0 109.8    Compiling thread_local v1.1.4
#0 110.2    Compiling kernel32-sys v0.2.2
#0 110.5    Compiling encoding-index-simpchinese v1.20141219.5
#0 110.6    Compiling encoding-index-singlebyte v1.20141219.5
#0 110.9    Compiling encoding-index-japanese v1.20141219.5
#0 110.9    Compiling encoding-index-tradchinese v1.20141219.5
#0 111.3    Compiling encoding-index-korean v1.20141219.5
#0 111.4    Compiling ring v0.16.20
#0 111.7    Compiling generic-array v0.14.5
#0 112.4    Compiling tinyvec v1.6.0
#0 112.7    Compiling miniz_oxide v0.5.3
#0 113.8    Compiling form_urlencoded v1.0.1
#0 114.9    Compiling http v0.2.8
#0 116.8    Compiling walkdir v2.3.2
#0 119.2    Compiling meval v0.2.0
#0 127.1    Compiling encoding v0.2.33
#0 133.2    Compiling unicode-normalization v0.1.21
#0 136.3    Compiling getrandom v0.2.7
#0 136.9    Compiling memchr v0.1.11
#0 137.1    Compiling time v0.1.44
#0 137.3    Compiling atty v0.2.14
#0 137.4    Compiling num_cpus v1.13.1
#0 139.0    Compiling dirs-sys-next v0.1.2
#0 139.3    Compiling uname v0.1.1
#0 139.6    Compiling nix v0.24.2
#0 140.6    Compiling which v4.2.5
#0 142.9    Compiling fern v0.6.1
#0 143.9    Compiling aho-corasick v0.7.18
#0 147.3    Compiling bstr v0.2.17
#0 149.8    Compiling flate2 v1.0.24
#0 150.9    Compiling idna v0.2.3
#0 151.3    Compiling rand_core v0.6.3
#0 151.9    Compiling aho-corasick v0.5.3
#0 155.1    Compiling colored v2.0.0
#0 156.5    Compiling dirs-next v2.0.0
#0 157.0    Compiling ctrlc v3.2.2
#0 161.6    Compiling thread-id v2.0.0
#0 162.7    Compiling regex v1.6.0
#0 163.1    Compiling block-buffer v0.10.2
#0 163.3    Compiling crypto-common v0.1.6
#0 163.5    Compiling url v2.2.2
#0 169.5    Compiling rand_chacha v0.3.1
#0 171.3    Compiling webpki v0.22.0
#0 173.3    Compiling sct v0.7.0
#0 174.0    Compiling thread_local v0.2.7
#0 183.1    Compiling digest v0.10.3
#0 183.4    Compiling globset v0.4.9
#0 188.6    Compiling java-properties v1.4.1
#0 190.8    Compiling shell2batch v0.4.4
#0 193.7    Compiling rand v0.8.5
#0 194.1    Compiling webpki-roots v0.22.4
#0 195.9    Compiling regex v0.1.80
#0 217.3    Compiling num v0.1.42
#0 223.7    Compiling sha2 v0.10.2
#0 226.6    Compiling ignore v0.4.18
#0 227.0    Compiling fsio v0.3.1
#0 227.9    Compiling attohttpc v0.19.1
#0 240.8    Compiling chrono v0.2.25
#0 244.5    Compiling cargo-platform v0.1.2
#0 247.9    Compiling serde_ignored v0.1.4
#0 248.2    Compiling toml v0.5.9
#0 251.1    Compiling duckscript v0.7.3
#0 256.8    Compiling run_script v0.9.0
#0 258.6    Compiling ftp v3.0.1
#0 259.6    Compiling lenient_semver_version_builder v0.4.2
#0 261.1    Compiling envmnt v0.10.0
#0 261.8    Compiling cargo_metadata v0.15.0
#0 263.7    Compiling duckscriptsdk v0.8.13
#0 275.3    Compiling lenient_semver_parser v0.4.2
#0 276.0    Compiling ci_info v0.14.5
#0 278.3    Compiling lenient_semver v0.4.2
#0 278.8    Compiling cargo-make v0.35.15
#0 391.9     Finished release [optimized] target(s) in 6m 26s
#0 392.1   Installing /home/makepkg/.cargo/bin/cargo-make
#0 392.1   Installing /home/makepkg/.cargo/bin/makers
#0 392.1    Installed package `cargo-make v0.35.15` (executables `cargo-make`, `makers`)
#0 392.4     Updating crates.io index
#0 393.2  Downloading crates ...
#0 393.8   Downloaded duckscript_cli v0.8.13
#0 393.9   Installing duckscript_cli v0.8.13
#0 394.6    Compiling libc v0.2.126
#0 394.6    Compiling cfg-if v1.0.0
#0 394.7    Compiling autocfg v1.1.0
#0 395.2    Compiling cc v1.0.73
#0 395.6    Compiling once_cell v1.13.0
#0 396.0    Compiling memchr v2.5.0
#0 396.5    Compiling encoding_index_tests v0.1.4
#0 396.6    Compiling version_check v0.9.4
#0 397.2    Compiling winapi-build v0.1.1
#0 397.5    Compiling typenum v1.15.0
#0 397.6    Compiling log v0.4.17
#0 398.0    Compiling spin v0.5.2
#0 398.2    Compiling untrusted v0.7.1
#0 398.5    Compiling winapi v0.2.8
#0 398.5    Compiling fnv v1.0.7
#0 398.6    Compiling tinyvec_macros v0.1.0
#0 398.6    Compiling crc32fast v1.3.2
#0 398.7    Compiling regex-syntax v0.6.27
#0 399.2    Compiling ppv-lite86 v0.2.16
#0 399.9    Compiling matches v0.1.9
#0 400.0    Compiling lazy_static v1.4.0
#0 400.2    Compiling percent-encoding v2.1.0
#0 400.8    Compiling adler v1.0.2
#0 401.2    Compiling serde v1.0.140
#0 401.7    Compiling itoa v1.0.2
#0 401.9    Compiling crossbeam-utils v0.8.11
#0 402.4    Compiling rustls v0.20.6
#0 402.7    Compiling unicode-bidi v0.3.8
#0 405.6    Compiling serde_json v1.0.82
#0 406.1    Compiling semver v1.0.12
#0 406.8    Compiling utf8-ranges v0.1.3
#0 407.3    Compiling regex-syntax v0.3.9
#0 416.3    Compiling same-file v1.0.6
#0 416.6    Compiling bytes v1.2.0
#0 416.7    Compiling wildmatch v2.1.1
#0 417.2    Compiling nom v1.2.4
#0 418.6    Compiling lazy_static v0.1.16
#0 418.7    Compiling either v1.7.0
#0 418.9    Compiling cpufeatures v0.2.2
#0 419.0    Compiling ryu v1.0.10
#0 419.1    Compiling whoami v1.2.1
#0 419.5    Compiling home v0.5.3
#0 420.1    Compiling glob v0.3.0
#0 420.1    Compiling heck v0.4.0
#0 421.5    Compiling base64 v0.13.0
#0 422.6    Compiling fs_extra v1.2.0
#0 422.7    Compiling num-traits v0.2.15
#0 423.1    Compiling num-integer v0.1.45
#0 423.4    Compiling num-iter v0.1.43
#0 423.5    Compiling thread_local v1.1.4
#0 423.8    Compiling encoding-index-japanese v1.20141219.5
#0 424.3    Compiling encoding-index-singlebyte v1.20141219.5
#0 424.3    Compiling encoding-index-simpchinese v1.20141219.5
#0 424.7    Compiling encoding-index-korean v1.20141219.5
#0 424.7    Compiling encoding-index-tradchinese v1.20141219.5
#0 425.1    Compiling generic-array v0.14.5
#0 425.1    Compiling kernel32-sys v0.2.2
#0 425.5    Compiling ring v0.16.20
#0 425.7    Compiling tinyvec v1.6.0
#0 426.7    Compiling form_urlencoded v1.0.1
#0 427.3    Compiling miniz_oxide v0.5.3
#0 427.7    Compiling walkdir v2.3.2
#0 430.2    Compiling http v0.2.8
#0 430.9    Compiling meval v0.2.0
#0 437.2    Compiling encoding v0.2.33
#0 443.4    Compiling unicode-normalization v0.1.21
#0 450.9    Compiling getrandom v0.2.7
#0 451.4    Compiling memchr v0.1.11
#0 451.6    Compiling time v0.1.44
#0 452.3    Compiling atty v0.2.14
#0 452.4    Compiling num_cpus v1.13.1
#0 453.6    Compiling uname v0.1.1
#0 453.9    Compiling which v4.2.5
#0 454.6    Compiling aho-corasick v0.7.18
#0 456.2    Compiling bstr v0.2.17
#0 458.8    Compiling flate2 v1.0.24
#0 460.6    Compiling idna v0.2.3
#0 470.2    Compiling rand_core v0.6.3
#0 470.7    Compiling aho-corasick v0.5.3
#0 471.0    Compiling colored v2.0.0
#0 472.5    Compiling regex v1.6.0
#0 472.7    Compiling thread-id v2.0.0
#0 472.8    Compiling crypto-common v0.1.6
#0 473.0    Compiling block-buffer v0.10.2
#0 473.2    Compiling url v2.2.2
#0 479.0    Compiling webpki v0.22.0
#0 481.1    Compiling sct v0.7.0
#0 481.8    Compiling rand_chacha v0.3.1
#0 483.6    Compiling thread_local v0.2.7
#0 483.8    Compiling digest v0.10.3
#0 484.2    Compiling globset v0.4.9
#0 495.0    Compiling java-properties v1.4.1
#0 497.2    Compiling webpki-roots v0.22.4
#0 498.6    Compiling rand v0.8.5
#0 500.6    Compiling num v0.1.42
#0 500.7    Compiling regex v0.1.80
#0 521.6    Compiling sha2 v0.10.2
#0 524.4    Compiling ignore v0.4.18
#0 528.0    Compiling fsio v0.3.1
#0 529.0    Compiling attohttpc v0.19.1
#0 539.7    Compiling chrono v0.2.25
#0 542.3    Compiling duckscript v0.7.3
#0 543.0    Compiling ftp v3.0.1
#0 546.4    Compiling duckscriptsdk v0.8.13
#0 573.9    Compiling duckscript_cli v0.8.13
#0 575.9     Finished release [optimized] target(s) in 3m 03s
#0 575.9   Installing /home/makepkg/.cargo/bin/duck
#0 575.9    Installed package `duckscript_cli v0.8.13` (executable `duck`)
#0 576.1 [cargo-make] INFO - cargo make 0.35.15
#0 577.4 [cargo-make] INFO - Project: dart-ffi
#0 577.4 [cargo-make] INFO - Build File: Makefile.toml
#0 577.4 [cargo-make] INFO - Task: flowy_dev
#0 577.4 [cargo-make] INFO - Profile: development
#0 577.4 [cargo-make] INFO - Execute Command: "cargo" "make" "--disable-check-for-updates" "--no-on-error" "--loglevel=info" "--profile=development" "--makefile" "/home/makepkg/appflowy/frontend/Makefile.toml" "flowy_dev"
#0 577.7 [cargo-make][1] INFO - Project: dart-ffi
#0 577.7 [cargo-make][1] INFO - Build File: /home/makepkg/appflowy/frontend/Makefile.toml
#0 577.7 [cargo-make][1] INFO - Task: flowy_dev
#0 577.7 [cargo-make][1] INFO - Profile: development
#0 577.7 [cargo-make][1] INFO - Running Task: legacy-migration
#0 577.7 [cargo-make][1] INFO - Running Task: install_targets
#0 577.9 info: component 'rust-std' for target 'x86_64-unknown-linux-gnu' is up to date
#0 577.9 [cargo-make][1] INFO - Running Task: install_diesel
#0 578.0     Updating crates.io index
#0 578.7  Downloading crates ...
#0 579.1   Downloaded diesel_cli v1.4.1
#0 579.2   Installing diesel_cli v1.4.1
#0 579.6  Downloading crates ...
#0 580.1   Downloaded byteorder v1.4.3
#0 580.2   Downloaded clap v2.34.0
#0 580.2   Downloaded error-chain v0.10.0
#0 580.2   Downloaded dotenv v0.10.1
#0 580.3   Downloaded diesel v1.4.8
#0 580.3   Downloaded pkg-config v0.3.25
#0 580.5   Downloaded aho-corasick v0.6.10
#0 580.6   Downloaded regex v0.2.11
#0 580.6   Downloaded fastrand v1.8.0
#0 580.6   Downloaded backtrace v0.3.66
#0 580.6   Downloaded object v0.29.0
#0 580.6   Downloaded migrations_internals v1.4.1
#0 580.6   Downloaded derive-error-chain v0.10.1
#0 580.6   Downloaded diesel_derives v1.4.1
#0 580.7   Downloaded regex-syntax v0.5.6
#0 580.7   Downloaded unicode-width v0.1.9
#0 580.7   Downloaded strsim v0.8.0
#0 580.7   Downloaded syn v0.11.11
#0 580.7   Downloaded ucd-util v0.1.9
#0 580.7   Downloaded remove_dir_all v0.5.3
#0 580.7   Downloaded tempfile v3.3.0
#0 580.7   Downloaded textwrap v0.11.0
#0 580.7   Downloaded chrono v0.4.19
#0 580.7   Downloaded toml v0.4.10
#0 580.7   Downloaded unicode-xid v0.0.4
#0 580.7   Downloaded vec_map v0.8.2
#0 580.7   Downloaded utf8-ranges v1.0.5
#0 580.7   Downloaded synom v0.11.3
#0 580.7   Downloaded thread_local v0.3.6
#0 580.7   Downloaded rustc-demangle v0.1.21
#0 580.7   Downloaded ansi_term v0.12.1
#0 580.7   Downloaded addr2line v0.17.0
#0 580.7   Downloaded quote v0.3.15
#0 580.9   Downloaded gimli v0.26.2
#0 580.9   Downloaded libsqlite3-sys v0.22.2
#0 581.2    Compiling libc v0.2.126
#0 581.2    Compiling proc-macro2 v1.0.40
#0 581.7    Compiling unicode-ident v1.0.2
#0 581.8    Compiling quote v1.0.20
#0 581.9    Compiling memchr v2.5.0
#0 582.4    Compiling syn v1.0.98
#0 582.5    Compiling autocfg v1.1.0
#0 583.0    Compiling cc v1.0.73
#0 583.3    Compiling pkg-config v0.3.25
#0 584.4    Compiling unicode-xid v0.0.4
#0 584.6    Compiling serde_derive v1.0.140
#0 585.1    Compiling gimli v0.26.2
#0 585.5    Compiling cfg-if v1.0.0
#0 585.7    Compiling adler v1.0.2
#0 586.0    Compiling regex v0.2.11
#0 586.6    Compiling lazy_static v1.4.0
#0 586.8    Compiling rustc-demangle v0.1.21
#0 589.4    Compiling quote v0.3.15
#0 589.9    Compiling ucd-util v0.1.9
#0 590.4    Compiling serde v1.0.140
#0 591.0    Compiling utf8-ranges v1.0.5
#0 591.5    Compiling byteorder v1.4.3
#0 592.0    Compiling unicode-width v0.1.9
#0 592.1    Compiling ansi_term v0.12.1
#0 592.1    Compiling fastrand v1.8.0
#0 592.9    Compiling strsim v0.8.0
#0 593.2    Compiling vec_map v0.8.2
#0 593.4    Compiling bitflags v1.3.2
#0 593.5    Compiling remove_dir_all v0.5.3
#0 594.0    Compiling num-traits v0.2.15
#0 594.4    Compiling num-integer v0.1.45
#0 594.7    Compiling libsqlite3-sys v0.22.2
#0 594.8    Compiling synom v0.11.3
#0 595.1    Compiling backtrace v0.3.66
#0 595.2    Compiling miniz_oxide v0.5.3
#0 595.9    Compiling thread_local v0.3.6
#0 596.6    Compiling addr2line v0.17.0
#0 597.2    Compiling regex-syntax v0.5.6
#0 599.3    Compiling textwrap v0.11.0
#0 606.9    Compiling syn v0.11.11
#0 612.8    Compiling atty v0.2.14
#0 613.0    Compiling time v0.1.44
#0 614.8    Compiling tempfile v3.3.0
#0 614.9    Compiling object v0.29.0
#0 617.1    Compiling aho-corasick v0.6.10
#0 619.4    Compiling derive-error-chain v0.10.1
#0 622.8    Compiling clap v2.34.0
#0 656.2    Compiling diesel_derives v1.4.1
#0 667.8    Compiling chrono v0.4.19
#0 673.0    Compiling error-chain v0.10.0
#0 673.7    Compiling diesel v1.4.8
#0 675.1    Compiling dotenv v0.10.1
#0 680.9    Compiling migrations_internals v1.4.1
#0 683.0    Compiling toml v0.4.10
#0 688.6    Compiling diesel_cli v1.4.1
#0 699.9     Finished release [optimized] target(s) in 2m 01s
#0 699.9   Installing /home/makepkg/.cargo/bin/diesel
#0 699.9    Installed package `diesel_cli v1.4.1` (executable `diesel`)
#0 700.0 /home/makepkg/.pub-cache/bin/protoc-gen-dart
#0 700.0 [cargo-make][1] INFO - Build Done in 122.59 seconds.
#0 700.0 [cargo-make] INFO - Build Done in 123.91 seconds.
#0 700.1 [cargo-make] INFO - cargo make 0.35.15
#0 700.4 [cargo-make] INFO - Project: dart-ffi
#0 700.4 [cargo-make] INFO - Build File: Makefile.toml
#0 700.4 [cargo-make] INFO - Task: appflowy-linux
#0 700.4 [cargo-make] INFO - Profile: production-linux-x86
#0 700.4 [cargo-make] INFO - Execute Command: "cargo" "make" "--disable-check-for-updates" "--no-on-error" "--loglevel=info" "--profile=production-linux-x86" "--makefile" "/home/makepkg/appflowy/frontend/Makefile.toml" "appflowy-linux"
#0 700.7 [cargo-make][1] INFO - Project: dart-ffi
#0 700.7 [cargo-make][1] INFO - Build File: /home/makepkg/appflowy/frontend/Makefile.toml
#0 700.7 [cargo-make][1] INFO - Task: appflowy-linux
#0 700.7 [cargo-make][1] INFO - Profile: production-linux-x86
#0 700.7 [cargo-make][1] INFO - Running Task: legacy-migration
#0 700.7 [cargo-make][1] INFO - Running Task: echo_env
#0 700.7 -------- Env Parameters --------
#0 700.7 CRATE_TYPE: staticlib
#0 700.7 BUILD_FLAG:
#0 700.7 TARGET_OS:
#0 700.7 RUST_COMPILE_TARGET:
#0 700.7 FEATURES: flutter
#0 700.7 PRODUCT_EXT:
#0 700.7 APP_ENVIRONMENT: local
#0 700.7 
#0 700.7 
#0 700.7 /home/makepkg/.pub-cache/bin/protoc-gen-dart
#0 700.7 [cargo-make][1] INFO - Running Task: setup-crate-type
#0 700.8 [cargo-make][1] INFO - Running Task: sdk-release-build
#0 700.8 error: Found argument '--package=dart-ffi' which wasn't expected, or isn't valid in this context
#0 700.8 
#0 700.8        If you tried to supply `--package=dart-ffi` as a value rather than a flag, use `-- --package=dart-ffi`
#0 700.8 
#0 700.8 USAGE:
#0 700.8     cargo build [OPTIONS]
#0 700.8 
#0 700.8 For more information try --help
#0 700.8 [cargo-make][1] ERROR - Error while executing command, exit code: 1
#0 700.8 [cargo-make][1] WARN - Build Failed.
#0 700.8 [cargo-make] INFO - Running Task: legacy-migration
#0 700.8 [cargo-make] INFO - Running Task: restore-crate-type
#0 700.9 [cargo-make] ERROR - Task error detected, exit code: 1
#0 700.9 [cargo-make] WARN - Build Failed.
------
failed to solve: executor failed running [/bin/sh -c git clone https://github.com/AppFlowy-IO/appflowy.git && cd appflowy/frontend && source $HOME/.cargo/env && cargo install --force cargo-make && cargo install --force duckscript_cli && cargo make flowy_dev && cargo make -p production-linux-x86 appflowy-linux]: exit code: 1

Desktop:

fangykai commented 2 years ago

Reproduceable on 22.04

annieappflowy commented 2 years ago

@MikeWallaceDev did you encounter this issue before?

MikeWallaceDev commented 2 years ago

No, I haven't. But I can look into it if you want.

MoutonSanglant commented 2 years ago

Reproduceable on Ubuntu 20.04.2 LTS

vincentdchan commented 2 years ago

Could you apply this patch and try again?

diff --git a/frontend/scripts/docker-buildfiles/Dockerfile b/frontend/scripts/docker-buildfiles/Dockerfile
index 54b79173..4cd281e8 100644
--- a/frontend/scripts/docker-buildfiles/Dockerfile
+++ b/frontend/scripts/docker-buildfiles/Dockerfile
@@ -33,7 +33,7 @@ source $HOME/.cargo/env && \
 cargo install --force cargo-make && \
 cargo install --force duckscript_cli && \
 cargo make flowy_dev && \
-cargo make -p production-linux-x86 appflowy-linux
+cargo make -p production-linux-x86 appflowy

 CMD ["/home/makepkg/appflowy/frontend/app_flowy/build/linux/x64/release/bundle/app_flowy"]
MoutonSanglant commented 2 years ago

Could you apply this patch and try again?

diff --git a/frontend/scripts/docker-buildfiles/Dockerfile b/frontend/scripts/docker-buildfiles/Dockerfile
index 54b79173..4cd281e8 100644
--- a/frontend/scripts/docker-buildfiles/Dockerfile
+++ b/frontend/scripts/docker-buildfiles/Dockerfile
@@ -33,7 +33,7 @@ source $HOME/.cargo/env && \
 cargo install --force cargo-make && \
 cargo install --force duckscript_cli && \
 cargo make flowy_dev && \
-cargo make -p production-linux-x86 appflowy-linux
+cargo make -p production-linux-x86 appflowy

 CMD ["/home/makepkg/appflowy/frontend/app_flowy/build/linux/x64/release/bundle/app_flowy"]

Just tried this morning and the error remains the same

The patched Dockerfile

FROM archlinux/archlinux:base-devel as builder

RUN pacman -Syy

RUN pacman -Syu --needed --noconfirm git xdg-user-dirs

# makepkg user and workdir
ARG user=makepkg
ENV PATH="/home/$user/.pub-cache/bin:/home/$user/.local/flutter/bin:/home/$user/.local/flutter/bin/cache/dart-sdk/bin:${PATH}"
RUN useradd --system --create-home $user \
  && echo "$user ALL=(ALL:ALL) NOPASSWD:ALL" > /etc/sudoers.d/$user
USER $user
WORKDIR /home/$user

# Install yay
RUN git clone https://aur.archlinux.org/yay.git \
  && cd yay \
  && makepkg -sri --needed --noconfirm

RUN yay -S --noconfirm curl base-devel sqlite openssl clang cmake ninja pkg-config gtk3 unzip
RUN xdg-user-dirs-update
RUN curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | sh -s -- -y
RUN source $HOME/.cargo/env && rustup toolchain install stable && rustup default stable
RUN git clone https://github.com/flutter/flutter.git $HOME/.local/flutter
RUN flutter channel stable
RUN flutter config --enable-linux-desktop
RUN flutter doctor
RUN dart pub global activate protoc_plugin

RUN git clone https://github.com/AppFlowy-IO/appflowy.git && \
cd appflowy/frontend && \
source $HOME/.cargo/env && \
cargo install --force cargo-make && \
cargo install --force duckscript_cli && \
cargo make flowy_dev && \
cargo make -p production-linux-x86 appflowy

CMD ["/home/makepkg/appflowy/frontend/app_flowy/build/linux/x64/release/bundle/app_flowy"]

#################
FROM archlinux/archlinux

RUN pacman -Syy && \
    pacman -Syu --needed --noconfirm xdg-user-dirs && \
    pacman -Scc --noconfirm
RUN xdg-user-dirs-update

COPY --from=builder /usr/sbin/yay /usr/sbin/yay
RUN yay -S --noconfirm gtk3

ARG user=appflowy
ARG uid=1000
ARG gid=1000

RUN groupadd --gid $gid appflowy
RUN useradd --create-home --uid $uid --gid $gid $user
USER $user
WORKDIR /home/$user

COPY --from=builder /home/makepkg/appflowy/frontend/app_flowy/build/linux/x64/release/bundle/ .

CMD ["./app_flowy"]
docker-compose build --build-arg uid=$(id -u) --build-arg gid=$(id -g)

Output

Building app
Sending build context to Docker daemon  4.608kB
Step 1/34 : FROM archlinux/archlinux:base-devel as builder
 ---> 889f40ec83e7
Step 2/34 : RUN pacman -Syy
 ---> Using cache
 ---> 697dc979733d
Step 3/34 : RUN pacman -Syu --needed --noconfirm git xdg-user-dirs
 ---> Using cache
 ---> b013f4109e2b
Step 4/34 : ARG user=makepkg
 ---> Using cache
 ---> 7d7cc4a54f3a
Step 5/34 : ENV PATH="/home/$user/.pub-cache/bin:/home/$user/.local/flutter/bin:/home/$user/.local/flutter/bin/cache/dart-sdk/bin:${PATH}"
 ---> Using cache
 ---> 90ecde05a6f8
Step 6/34 : RUN useradd --system --create-home $user   && echo "$user ALL=(ALL:ALL) NOPASSWD:ALL" > /etc/sudoers.d/$user
 ---> Using cache
 ---> 3be48aa6bf28
Step 7/34 : USER $user
 ---> Using cache
 ---> 901ae7652dd6
Step 8/34 : WORKDIR /home/$user
 ---> Using cache
 ---> 7f416695c86b
Step 9/34 : RUN git clone https://aur.archlinux.org/yay.git   && cd yay   && makepkg -sri --needed --noconfirm
 ---> Using cache
 ---> 7f93e75197c8
Step 10/34 : RUN yay -S --noconfirm curl base-devel sqlite openssl clang cmake ninja pkg-config gtk3 unzip
 ---> Using cache
 ---> 0ffb2613d803
Step 11/34 : RUN xdg-user-dirs-update
 ---> Using cache
 ---> c124033810bc
Step 12/34 : RUN curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | sh -s -- -y
 ---> Using cache
 ---> dd62f545f48b
Step 13/34 : RUN source $HOME/.cargo/env && rustup toolchain install stable && rustup default stable
 ---> Using cache
 ---> 11caf313076c
Step 14/34 : RUN git clone https://github.com/flutter/flutter.git $HOME/.local/flutter
 ---> Using cache
 ---> 28122c4a22fb
Step 15/34 : RUN flutter channel stable
 ---> Using cache
 ---> 4d2b5a875f25
Step 16/34 : RUN flutter config --enable-linux-desktop
 ---> Using cache
 ---> b11c0077c1eb
Step 17/34 : RUN flutter doctor
 ---> Using cache
 ---> f5997a0977cd
Step 18/34 : RUN dart pub global activate protoc_plugin
 ---> Using cache
 ---> c454d4b80dfc
Step 19/34 : RUN git clone https://github.com/AppFlowy-IO/appflowy.git && cd appflowy/frontend && source $HOME/.cargo/env && cargo install --force cargo-make && cargo install --force duckscript_cli && cargo make flowy_dev && cargo make -p production-linux-x86 appflowy
 ---> Running in b148adb487c2
Cloning into 'appflowy'...
    Updating crates.io index
 Downloading crates ...
  Downloaded cargo-make v0.35.15
  Installing cargo-make v0.35.15
 Downloading crates ...
  Downloaded either v1.7.0
  Downloaded encoding-index-japanese v1.20141219.5
  Downloaded autocfg v1.1.0
  Downloaded encoding-index-korean v1.20141219.5
  Downloaded encoding-index-singlebyte v1.20141219.5
  Downloaded form_urlencoded v1.0.1
  Downloaded fs_extra v1.2.0
  Downloaded flate2 v1.0.24
  Downloaded home v0.5.3
  Downloaded http v0.2.8
  Downloaded ignore v0.4.18
  Downloaded lazy_static v1.4.0
  Downloaded toml v0.5.9
  Downloaded thread_local v0.2.7
  Downloaded block-buffer v0.10.2
  Downloaded kernel32-sys v0.2.2
  Downloaded num-integer v0.1.45
  Downloaded num_cpus v1.13.1
  Downloaded lenient_semver_version_builder v0.4.2
  Downloaded lenient_semver_parser v0.4.2
  Downloaded encoding_index_tests v0.1.4
  Downloaded regex v1.6.0
  Downloaded rustls v0.20.6
  Downloaded spin v0.5.2
  Downloaded untrusted v0.7.1
  Downloaded serde_ignored v0.1.4
  Downloaded whoami v1.2.1
  Downloaded regex-syntax v0.3.9
  Downloaded nom v1.2.4
  Downloaded regex v0.1.80
  Downloaded utf8-ranges v0.1.3
  Downloaded wildmatch v2.1.1
  Downloaded winapi-build v0.1.1
  Downloaded webpki-roots v0.22.4
  Downloaded thread-id v2.0.0
  Downloaded libc v0.2.126
  Downloaded lenient_semver v0.4.2
  Downloaded aho-corasick v0.5.3
  Downloaded num v0.1.42
  Downloaded winapi v0.2.8
  Downloaded ci_info v0.14.5
  Downloaded lazy_static v0.1.16
  Downloaded base64 v0.13.0
  Downloaded adler v1.0.2
  Downloaded git_info v0.1.2
  Downloaded which v4.2.5
  Downloaded webpki v0.22.0
  Downloaded walkdir v2.3.2
  Downloaded version_check v0.9.4
  Downloaded url v2.2.2
  Downloaded nix v0.24.2
  Downloaded meval v0.2.0
  Downloaded memchr v0.1.11
  Downloaded unicode-normalization v0.1.21
  Downloaded unicode-ident v1.0.2
  Downloaded unicode-bidi v0.3.8
  Downloaded rust_info v0.3.2
  Downloaded run_script v0.9.0
  Downloaded uname v0.1.1
  Downloaded typenum v1.15.0
  Downloaded fsio v0.3.1
  Downloaded envmnt v0.10.0
  Downloaded tinyvec v1.6.0
  Downloaded shell2batch v0.4.4
  Downloaded time v0.1.44
  Downloaded ring v0.16.20
  Downloaded thread_local v1.1.4
  Downloaded sha2 v0.10.2
  Downloaded serde_json v1.0.82
  Downloaded serde_derive v1.0.140
  Downloaded serde v1.0.140
  Downloaded semver v1.0.12
  Downloaded sct v0.7.0
  Downloaded same-file v1.0.6
  Downloaded ryu v1.0.10
  Downloaded regex-syntax v0.6.27
  Downloaded cliparser v0.1.2
  Downloaded rand_core v0.6.3
  Downloaded rand_chacha v0.3.1
  Downloaded rand v0.8.5
  Downloaded quote v1.0.20
  Downloaded proc-macro2 v1.0.42
  Downloaded ppv-lite86 v0.2.16
  Downloaded percent-encoding v2.1.0
  Downloaded once_cell v1.13.0
  Downloaded encoding-index-tradchinese v1.20141219.5
  Downloaded chrono v0.2.25
  Downloaded java-properties v1.4.1
  Downloaded cargo_metadata v0.15.0
  Downloaded num-traits v0.2.15
  Downloaded num-iter v0.1.43
  Downloaded cfg-if v1.0.0
  Downloaded cc v1.0.73
  Downloaded cargo-platform v0.1.2
  Downloaded miniz_oxide v0.5.3
  Downloaded memchr v2.5.0
  Downloaded matches v0.1.9
  Downloaded log v0.4.17
  Downloaded camino v1.0.9
  Downloaded bytes v1.2.0
  Downloaded bstr v0.2.17
  Downloaded ftp v3.0.1
  Downloaded bitflags v1.3.2
  Downloaded atty v0.2.14
  Downloaded attohttpc v0.19.1
  Downloaded tinyvec_macros v0.1.0
  Downloaded syn v1.0.98
  Downloaded itoa v1.0.2
  Downloaded indexmap v1.9.1
  Downloaded duckscript v0.7.3
  Downloaded idna v0.2.3
  Downloaded ctrlc v3.2.2
  Downloaded dirs-sys-next v0.1.2
  Downloaded dirs-next v2.0.0
  Downloaded heck v0.4.0
  Downloaded hashbrown v0.12.3
  Downloaded globset v0.4.9
  Downloaded glob v0.3.0
  Downloaded getrandom v0.2.7
  Downloaded generic-array v0.14.5
  Downloaded fern v0.6.1
  Downloaded encoding-index-simpchinese v1.20141219.5
  Downloaded digest v0.10.3
  Downloaded crypto-common v0.1.6
  Downloaded fnv v1.0.7
  Downloaded crossbeam-utils v0.8.11
  Downloaded encoding v0.2.33
  Downloaded crc32fast v1.3.2
  Downloaded cpufeatures v0.2.2
  Downloaded colored v2.0.0
  Downloaded aho-corasick v0.7.18
  Downloaded duckscriptsdk v0.8.13
   Compiling libc v0.2.126
   Compiling cfg-if v1.0.0
   Compiling proc-macro2 v1.0.42
   Compiling quote v1.0.20
   Compiling unicode-ident v1.0.2
   Compiling autocfg v1.1.0
   Compiling syn v1.0.98
   Compiling serde_derive v1.0.140
   Compiling serde v1.0.140
   Compiling memchr v2.5.0
   Compiling cc v1.0.73
   Compiling once_cell v1.13.0
   Compiling typenum v1.15.0
   Compiling log v0.4.17
   Compiling ppv-lite86 v0.2.16
   Compiling version_check v0.9.4
   Compiling winapi-build v0.1.1
   Compiling encoding_index_tests v0.1.4
   Compiling untrusted v0.7.1
   Compiling semver v1.0.12
   Compiling spin v0.5.2
   Compiling tinyvec_macros v0.1.0
   Compiling fnv v1.0.7
   Compiling winapi v0.2.8
   Compiling regex-syntax v0.6.27
   Compiling itoa v1.0.2
   Compiling matches v0.1.9
   Compiling crc32fast v1.3.2
   Compiling lazy_static v1.4.0
   Compiling adler v1.0.2
   Compiling rustls v0.20.6
   Compiling percent-encoding v2.1.0
   Compiling serde_json v1.0.82
   Compiling crossbeam-utils v0.8.11
   Compiling unicode-bidi v0.3.8
   Compiling hashbrown v0.12.3
   Compiling camino v1.0.9
   Compiling same-file v1.0.6
   Compiling bytes v1.2.0
   Compiling regex-syntax v0.3.9
   Compiling ryu v1.0.10
   Compiling utf8-ranges v0.1.3
   Compiling cpufeatures v0.2.2
   Compiling wildmatch v2.1.1
   Compiling either v1.7.0
   Compiling bitflags v1.3.2
   Compiling nom v1.2.4
   Compiling lazy_static v0.1.16
   Compiling glob v0.3.0
   Compiling whoami v1.2.1
   Compiling fs_extra v1.2.0
   Compiling base64 v0.13.0
   Compiling home v0.5.3
   Compiling heck v0.4.0
   Compiling cliparser v0.1.2
   Compiling git_info v0.1.2
   Compiling rust_info v0.3.2
   Compiling num-traits v0.2.15
   Compiling num-integer v0.1.45
   Compiling num-iter v0.1.43
   Compiling indexmap v1.9.1
   Compiling ring v0.16.20
   Compiling thread_local v1.1.4
   Compiling generic-array v0.14.5
   Compiling kernel32-sys v0.2.2
   Compiling encoding-index-tradchinese v1.20141219.5
   Compiling encoding-index-korean v1.20141219.5
   Compiling encoding-index-singlebyte v1.20141219.5
   Compiling encoding-index-japanese v1.20141219.5
   Compiling encoding-index-simpchinese v1.20141219.5
   Compiling tinyvec v1.6.0
   Compiling miniz_oxide v0.5.3
   Compiling form_urlencoded v1.0.1
   Compiling walkdir v2.3.2
   Compiling http v0.2.8
   Compiling meval v0.2.0
   Compiling encoding v0.2.33
   Compiling unicode-normalization v0.1.21
   Compiling getrandom v0.2.7
   Compiling memchr v0.1.11
   Compiling time v0.1.44
   Compiling atty v0.2.14
   Compiling nix v0.24.2
   Compiling uname v0.1.1
   Compiling dirs-sys-next v0.1.2
   Compiling num_cpus v1.13.1
   Compiling which v4.2.5
   Compiling aho-corasick v0.7.18
   Compiling bstr v0.2.17
   Compiling fern v0.6.1
   Compiling idna v0.2.3
   Compiling flate2 v1.0.24
   Compiling rand_core v0.6.3
   Compiling aho-corasick v0.5.3
   Compiling colored v2.0.0
   Compiling ctrlc v3.2.2
   Compiling dirs-next v2.0.0
   Compiling regex v1.6.0
   Compiling webpki v0.22.0
   Compiling sct v0.7.0
   Compiling block-buffer v0.10.2
   Compiling crypto-common v0.1.6
   Compiling thread-id v2.0.0
   Compiling url v2.2.2
   Compiling rand_chacha v0.3.1
   Compiling globset v0.4.9
   Compiling java-properties v1.4.1
   Compiling shell2batch v0.4.4
   Compiling webpki-roots v0.22.4
   Compiling digest v0.10.3
   Compiling thread_local v0.2.7
   Compiling rand v0.8.5
   Compiling num v0.1.42
   Compiling ignore v0.4.18
   Compiling attohttpc v0.19.1
   Compiling sha2 v0.10.2
   Compiling regex v0.1.80
   Compiling fsio v0.3.1
   Compiling cargo-platform v0.1.2
   Compiling toml v0.5.9
   Compiling serde_ignored v0.1.4
   Compiling chrono v0.2.25
   Compiling duckscript v0.7.3
   Compiling run_script v0.9.0
   Compiling lenient_semver_version_builder v0.4.2
   Compiling envmnt v0.10.0
   Compiling cargo_metadata v0.15.0
   Compiling ftp v3.0.1
   Compiling lenient_semver_parser v0.4.2
   Compiling ci_info v0.14.5
   Compiling duckscriptsdk v0.8.13
   Compiling lenient_semver v0.4.2
   Compiling cargo-make v0.35.15
    Finished release [optimized] target(s) in 11m 56s
  Installing /home/makepkg/.cargo/bin/cargo-make
  Installing /home/makepkg/.cargo/bin/makers
   Installed package `cargo-make v0.35.15` (executables `cargo-make`, `makers`)
    Updating crates.io index
 Downloading crates ...
  Downloaded duckscript_cli v0.8.13
  Installing duckscript_cli v0.8.13
   Compiling libc v0.2.126
   Compiling cfg-if v1.0.0
   Compiling autocfg v1.1.0
   Compiling cc v1.0.73
   Compiling once_cell v1.13.0
   Compiling memchr v2.5.0
   Compiling encoding_index_tests v0.1.4
   Compiling typenum v1.15.0
   Compiling version_check v0.9.4
   Compiling winapi-build v0.1.1
   Compiling spin v0.5.2
   Compiling log v0.4.17
   Compiling untrusted v0.7.1
   Compiling winapi v0.2.8
   Compiling fnv v1.0.7
   Compiling tinyvec_macros v0.1.0
   Compiling crc32fast v1.3.2
   Compiling regex-syntax v0.6.27
   Compiling ppv-lite86 v0.2.16
   Compiling matches v0.1.9
   Compiling adler v1.0.2
   Compiling unicode-bidi v0.3.8
   Compiling crossbeam-utils v0.8.11
   Compiling serde v1.0.140
   Compiling percent-encoding v2.1.0
   Compiling itoa v1.0.2
   Compiling lazy_static v1.4.0
   Compiling rustls v0.20.6
   Compiling semver v1.0.12
   Compiling serde_json v1.0.82
   Compiling bytes v1.2.0
   Compiling utf8-ranges v0.1.3
   Compiling same-file v1.0.6
   Compiling regex-syntax v0.3.9
   Compiling either v1.7.0
   Compiling lazy_static v0.1.16
   Compiling nom v1.2.4
   Compiling ryu v1.0.10
   Compiling wildmatch v2.1.1
   Compiling cpufeatures v0.2.2
   Compiling glob v0.3.0
   Compiling home v0.5.3
   Compiling base64 v0.13.0
   Compiling whoami v1.2.1
   Compiling fs_extra v1.2.0
   Compiling heck v0.4.0
   Compiling num-traits v0.2.15
   Compiling num-integer v0.1.45
   Compiling num-iter v0.1.43
   Compiling ring v0.16.20
   Compiling thread_local v1.1.4
   Compiling encoding-index-japanese v1.20141219.5
   Compiling encoding-index-korean v1.20141219.5
   Compiling encoding-index-tradchinese v1.20141219.5
   Compiling encoding-index-simpchinese v1.20141219.5
   Compiling encoding-index-singlebyte v1.20141219.5
   Compiling generic-array v0.14.5
   Compiling kernel32-sys v0.2.2
   Compiling tinyvec v1.6.0
   Compiling miniz_oxide v0.5.3
   Compiling form_urlencoded v1.0.1
   Compiling http v0.2.8
   Compiling walkdir v2.3.2
   Compiling meval v0.2.0
   Compiling encoding v0.2.33
   Compiling unicode-normalization v0.1.21
   Compiling getrandom v0.2.7
   Compiling memchr v0.1.11
   Compiling time v0.1.44
   Compiling atty v0.2.14
   Compiling which v4.2.5
   Compiling num_cpus v1.13.1
   Compiling uname v0.1.1
   Compiling aho-corasick v0.7.18
   Compiling bstr v0.2.17
   Compiling idna v0.2.3
   Compiling flate2 v1.0.24
   Compiling rand_core v0.6.3
   Compiling aho-corasick v0.5.3
   Compiling colored v2.0.0
   Compiling webpki v0.22.0
   Compiling sct v0.7.0
   Compiling regex v1.6.0
   Compiling block-buffer v0.10.2
   Compiling crypto-common v0.1.6
   Compiling thread-id v2.0.0
   Compiling url v2.2.2
   Compiling rand_chacha v0.3.1
   Compiling webpki-roots v0.22.4
   Compiling globset v0.4.9
   Compiling java-properties v1.4.1
   Compiling digest v0.10.3
   Compiling thread_local v0.2.7
   Compiling rand v0.8.5
   Compiling num v0.1.42
   Compiling attohttpc v0.19.1
   Compiling ignore v0.4.18
   Compiling sha2 v0.10.2
   Compiling regex v0.1.80
   Compiling fsio v0.3.1
   Compiling chrono v0.2.25
   Compiling duckscript v0.7.3
   Compiling ftp v3.0.1
   Compiling duckscriptsdk v0.8.13
   Compiling duckscript_cli v0.8.13
    Finished release [optimized] target(s) in 6m 28s
  Installing /home/makepkg/.cargo/bin/duck
   Installed package `duckscript_cli v0.8.13` (executable `duck`)
[cargo-make] INFO - cargo make 0.35.15
[cargo-make] INFO - Project: dart-ffi
[cargo-make] INFO - Build File: Makefile.toml
[cargo-make] INFO - Task: flowy_dev
[cargo-make] INFO - Profile: development
[cargo-make] INFO - Execute Command: "cargo" "make" "--disable-check-for-updates" "--no-on-error" "--loglevel=info" "--profile=development" "--makefile" "/home/makepkg/appflowy/frontend/Makefile.toml" "flowy_dev"
[cargo-make][1] INFO - Project: dart-ffi
[cargo-make][1] INFO - Build File: /home/makepkg/appflowy/frontend/Makefile.toml
[cargo-make][1] INFO - Task: flowy_dev
[cargo-make][1] INFO - Profile: development
[cargo-make][1] INFO - Running Task: legacy-migration
[cargo-make][1] INFO - Running Task: install_targets
info: component 'rust-std' for target 'x86_64-unknown-linux-gnu' is up to date
[cargo-make][1] INFO - Running Task: install_diesel
    Updating crates.io index
 Downloading crates ...
  Downloaded diesel_cli v1.4.1
  Installing diesel_cli v1.4.1
 Downloading crates ...
  Downloaded fastrand v1.8.0
  Downloaded vec_map v0.8.2
  Downloaded ucd-util v0.1.9
  Downloaded unicode-width v0.1.9
  Downloaded clap v2.34.0
  Downloaded utf8-ranges v1.0.5
  Downloaded regex-syntax v0.5.6
  Downloaded dotenv v0.10.1
  Downloaded unicode-xid v0.0.4
  Downloaded toml v0.4.10
  Downloaded quote v0.3.15
  Downloaded derive-error-chain v0.10.1
  Downloaded libsqlite3-sys v0.22.2
  Downloaded diesel v1.4.8
  Downloaded backtrace v0.3.66
  Downloaded aho-corasick v0.6.10
  Downloaded chrono v0.4.19
  Downloaded byteorder v1.4.3
  Downloaded ansi_term v0.12.1
  Downloaded strsim v0.8.0
  Downloaded diesel_derives v1.4.1
  Downloaded thread_local v0.3.6
  Downloaded synom v0.11.3
  Downloaded syn v0.11.11
  Downloaded regex v0.2.11
  Downloaded migrations_internals v1.4.1
  Downloaded textwrap v0.11.0
  Downloaded tempfile v3.3.0
  Downloaded rustc-demangle v0.1.21
  Downloaded remove_dir_all v0.5.3
  Downloaded pkg-config v0.3.25
  Downloaded object v0.29.0
  Downloaded gimli v0.26.2
  Downloaded error-chain v0.10.0
  Downloaded addr2line v0.17.0
   Compiling libc v0.2.126
   Compiling proc-macro2 v1.0.42
   Compiling quote v1.0.20
   Compiling unicode-ident v1.0.2
   Compiling syn v1.0.98
   Compiling memchr v2.5.0
   Compiling autocfg v1.1.0
   Compiling pkg-config v0.3.25
   Compiling cc v1.0.73
   Compiling unicode-xid v0.0.4
   Compiling adler v1.0.2
   Compiling gimli v0.26.2
   Compiling cfg-if v1.0.0
   Compiling serde_derive v1.0.140
   Compiling lazy_static v1.4.0
   Compiling ucd-util v0.1.9
   Compiling serde v1.0.140
   Compiling regex v0.2.11
   Compiling rustc-demangle v0.1.21
   Compiling quote v0.3.15
   Compiling utf8-ranges v1.0.5
   Compiling byteorder v1.4.3
   Compiling unicode-width v0.1.9
   Compiling fastrand v1.8.0
   Compiling strsim v0.8.0
   Compiling remove_dir_all v0.5.3
   Compiling ansi_term v0.12.1
   Compiling vec_map v0.8.2
   Compiling bitflags v1.3.2
   Compiling num-traits v0.2.15
   Compiling num-integer v0.1.45
   Compiling libsqlite3-sys v0.22.2
   Compiling backtrace v0.3.66
   Compiling synom v0.11.3
   Compiling miniz_oxide v0.5.3
   Compiling addr2line v0.17.0
   Compiling thread_local v0.3.6
   Compiling regex-syntax v0.5.6
   Compiling textwrap v0.11.0
   Compiling syn v0.11.11
   Compiling atty v0.2.14
   Compiling time v0.1.44
   Compiling tempfile v3.3.0
   Compiling object v0.29.0
   Compiling aho-corasick v0.6.10
   Compiling derive-error-chain v0.10.1
   Compiling clap v2.34.0
   Compiling diesel_derives v1.4.1
   Compiling error-chain v0.10.0
   Compiling chrono v0.4.19
   Compiling diesel v1.4.8
   Compiling dotenv v0.10.1
   Compiling migrations_internals v1.4.1
   Compiling toml v0.4.10
   Compiling diesel_cli v1.4.1
    Finished release [optimized] target(s) in 4m 18s
  Installing /home/makepkg/.cargo/bin/diesel
   Installed package `diesel_cli v1.4.1` (executable `diesel`)
/home/makepkg/.pub-cache/bin/protoc-gen-dart
[cargo-make][1] INFO - Build Done in 259.22 seconds.
[cargo-make] INFO - Build Done in 261.08 seconds.
[cargo-make] INFO - cargo make 0.35.15
[cargo-make] INFO - Project: dart-ffi
[cargo-make] INFO - Build File: Makefile.toml
[cargo-make] INFO - Task: appflowy
[cargo-make] INFO - Profile: production-linux-x86
[cargo-make] INFO - Execute Command: "cargo" "make" "--disable-check-for-updates" "--no-on-error" "--loglevel=info" "--profile=production-linux-x86" "--makefile" "/home/makepkg/appflowy/frontend/Makefile.toml" "appflowy"
[cargo-make][1] INFO - Project: dart-ffi
[cargo-make][1] INFO - Build File: /home/makepkg/appflowy/frontend/Makefile.toml
[cargo-make][1] INFO - Task: appflowy
[cargo-make][1] INFO - Profile: production-linux-x86
[cargo-make][1] INFO - Running Task: legacy-migration
[cargo-make][1] INFO - Running Task: echo_env
-------- Env Parameters --------
CRATE_TYPE: staticlib
BUILD_FLAG:
TARGET_OS:
RUST_COMPILE_TARGET:
FEATURES: flutter
PRODUCT_EXT:
APP_ENVIRONMENT: local

/home/makepkg/.pub-cache/bin/protoc-gen-dart
[cargo-make][1] INFO - Running Task: setup-crate-type
[cargo-make][1] INFO - Running Task: sdk-release-build
error: Found argument '--package=dart-ffi' which wasn't expected, or isn't valid in this context

        If you tried to supply `--package=dart-ffi` as a value rather than a flag, use `-- --package=dart-ffi`

USAGE:
    cargo build [OPTIONS]

For more information try --help
[cargo-make][1] ERROR - Error while executing command, exit code: 1
[cargo-make][1] WARN - Build Failed.
[cargo-make] INFO - Running Task: legacy-migration
[cargo-make] INFO - Running Task: restore-crate-type
[cargo-make] ERROR - Task error detected, exit code: 1
[cargo-make] WARN - Build Failed.
The command '/bin/sh -c git clone https://github.com/AppFlowy-IO/appflowy.git && cd appflowy/frontend && source $HOME/.cargo/env && cargo install --force cargo-make && cargo install --force duckscript_cli && cargo make flowy_dev && cargo make -p production-linux-x86 appflowy' returned a non-zero code: 1
ERROR: Service 'app' failed to build : Build failed
LilMonk commented 2 years ago

I'm also having the same issue. I'm using Pop!_OS 22.04 LTS

airdogvan commented 1 year ago

Same issue on ubuntu 22.04 AMD

Sorry not sure why this is all BOLD... appflowy And also tried on Garuda with similar results 1628.9 Building Linux application...
0 1663.3 ERROR: packages/appflowy_editor/lib/src/service/input_service.dart:60:7: Error: The non-abstract class '_AppFlowyInputState' is missing implementations for these members: 0 1663.3 ERROR: - TextInputClient.didChangeInputControl 0 1663.3 ERROR: - TextInputClient.performSelector 0 1663.3 ERROR: Try to either 0 1663.3 ERROR: - provide an implementation, 0 1663.3 ERROR: - inherit an implementation from a superclass or mixin, 0 1663.3 ERROR: - mark the class as abstract, or 0 1663.3 ERROR: - provide a 'noSuchMethod' implementation. 0 1663.3 ERROR: class _AppFlowyInputState extends State 0 1663.3 ERROR: ^^^^^^^^^^^^^^^^^^^ 0 1663.3 ERROR: ../../../.local/flutter/packages/flutter/lib/src/services/text_input.dart:1163:8: Context: 'TextInputClient.didChangeInputControl' is defined here. 0 1663.3 ERROR: void didChangeInputControl(TextInputControl? oldControl, TextInputControl? newControl) {} 0 1663.3 ERROR: ^^^^^^^^^^^^^^^^^^^^^ 0 1663.3 ERROR: ../../../.local/flutter/packages/flutter/lib/src/services/text_input.dart:1184:8: Context: 'TextInputClient.performSelector' is defined here. 0 1663.3 ERROR: void performSelector(String selectorName) {} 0 1663.3 ERROR: ^^^^^^^^^^^^^^^ 0 1663.3 ERROR: Target kernel_snapshot failed: Exception 0 1663.3 Build process failed 0 1663.6 [cargo-make][1] ERROR - Error while executing command, exit code: 1 0 1663.6 [cargo-make][1] WARN - Build Failed. 0 1663.6 [cargo-make] INFO - Running Task: legacy-migration 0 1663.6 [cargo-make] INFO - Running Task: restore-crate-type 0 1663.6 [cargo-make] ERROR - Task error detected, exit code: 1 0 1663.6 [cargo-make] WARN - Build Failed.

failed to solve: executor failed running [/bin/sh -c git clone https://github.com/AppFlowy-IO/appflowy.git && cd appflowy/frontend && source $HOME/.cargo/env && cargo install --force cargo-make && cargo install --force duckscript_cli && cargo make appflowy-flutter-deps-tools && cargo make -p production-linux-x86_64 appflowy-linux]: exit code: 1

And I can apparently add Fedora to the list:

Downloading linux-x64-release/linux-x64-flutter-gtk tools... 363ms

💪 Building with sound null safety 💪

Building Linux application...
ERROR: packages/appflowy_editor/lib/src/service/input_service.dart:60:7: Error: The non-abstract class '_AppFlowyInputState' is missing implementations for these members: ERROR: - TextInputClient.didChangeInputControl ERROR: - TextInputClient.performSelector ERROR: Try to either ERROR: - provide an implementation, ERROR: - inherit an implementation from a superclass or mixin, ERROR: - mark the class as abstract, or ERROR: - provide a 'noSuchMethod' implementation. ERROR: class _AppFlowyInputState extends State ERROR: ^^^^^^^^^^^^^^^^^^^ ERROR: ../../../.local/flutter/packages/flutter/lib/src/services/text_input.dart:1163:8: Context: 'TextInputClient.didChangeInputControl' is defined here. ERROR: void didChangeInputControl(TextInputControl? oldControl, TextInputControl? newControl) {} ERROR: ^^^^^^^^^^^^^^^^^^^^^ ERROR: ../../../.local/flutter/packages/flutter/lib/src/services/text_input.dart:1184:8: Context: 'TextInputClient.performSelector' is defined here. ERROR: void performSelector(String selectorName) {} ERROR: ^^^^^^^^^^^^^^^ ERROR: Target kernel_snapshot failed: Exception Build process failed [cargo-make][1] ERROR - Error while executing command, exit code: 1 [cargo-make][1] WARN - Build Failed. [cargo-make] INFO - Running Task: legacy-migration [cargo-make] INFO - Running Task: restore-crate-type [cargo-make] ERROR - Task error detected, exit code: 1 [cargo-make] WARN - Build Failed. The command '/bin/sh -c git clone https://github.com/AppFlowy-IO/appflowy.git && cd appflowy/frontend && source $HOME/.cargo/env && cargo install --force cargo-make && cargo install --force duckscript_cli && cargo make appflowy-flutter-deps-tools && cargo make -p production-linux-x86_64 appflowy-linux' returned a non-zero code: 1 ERROR: Service 'app' failed to build : Build failed

ghabianis commented 1 year ago

i'm having the same issue also

annieappflowy commented 10 months ago

please try out our latest solution: https://docs.appflowy.io/docs/guides/appflowy/self-hosting-appflowy