Closed getWatermelon closed 10 months ago
Reproduceable on 22.04
@MikeWallaceDev did you encounter this issue before?
No, I haven't. But I can look into it if you want.
Reproduceable on Ubuntu 20.04.2 LTS
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"]
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
I'm also having the same issue. I'm using Pop!_OS 22.04 LTS
Same issue on ubuntu 22.04 AMD
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
i'm having the same issue also
please try out our latest solution: https://docs.appflowy.io/docs/guides/appflowy/self-hosting-appflowy
Describe the bug Error happens on building docker image appflowy/appflowy:latest using docker-compose file from repository.
To Reproduce Build the docker image
Terminal output:
Desktop: