Closed darkshadow013 closed 3 years ago
I'm also facing the same issue, this seems to only occur on builds using docker
I think it might happen because the docker image contains an too old flutter version.
I'm not very familiar with docker. but can we run the flutter upgrade manually, or we can only wait for the maintainers to update the docker image? @jld3103
If you clone the repo and build the Docker image locally this would be fixed. I think @GeertJohan once proposed to also add the flutter version to the tag so we have a combination of hover version and flutter version for the docker image tag. That would fix the problem forever.
Okay, thanks for the clarification
@jld3103 can you please tell me how to do this?
Thanks!!
On linux and mac:
git clone https://github.com/go-flutter-desktop/hover.git
cd hover
./install-with-docker-image.sh
On windows do the same, but run the commands in install-with-docker-image.sh
manually (not tested, but should work as far as I know):
go install .
set DOCKER_BUILDKIT=1
docker build . -t goflutter/hover:latest
Thanks for the answer,
when i run command :- hover build linux-deb --target "lib/main.dart
It worked.
But, when i tried running command to build .snap :-
hover build linux-snap --target "lib/main.dart
The output is :-
himanshu@himanshu-Latitude-3560:~/Downloads/Flutter_Projects/passbook$ hover build linux-snap --target "lib/main.dart" hover: Using engine from cache hover: Cleaning the build directory hover: ⚠ The go-flutter project tries to stay compatible with the beta channel of Flutter. hover: ⚠ It's advised to use the beta channel:
flutter channel beta
hover: Bundling flutter app hover: Generating kernel snapshot result 645cac56-ecd6-418d-b004-e3f187344633 lib/main.dart: Warning: Interpreting this as package URI, 'package:passbook/main.dart'. 645cac56-ecd6-418d-b004-e3f187344633 +file:///home/himanshu/Downloads/Flutter_Projects/passbook/lib/main.dart +file:///home/himanshu/Downloads/Flutter_Projects/passbook/lib/plugin/desktop/io.dart +file:///home/himanshu/Downloads/Flutter_Projects/passbook/lib/src/moorDatabase.dart +file:///home/himanshu/snap/flutter/common/flutter/packages/flutter/lib/material.dart [....] +file:///home/himanshu/snap/flutter/common/flutter/.pub-cache/hosted/pub.dartlang.org/file-5.2.1/lib/src/backends/local/local_file_system_entity.dart 645cac56-ecd6-418d-b004-e3f187344633 /home/himanshu/Downloads/Flutter_Projects/passbook/go/build/outputs/linux-release/kernel_snapshot.dill 0 hover: Generating ELF snapshot Warning: Generating ELF library without DWARF debugging information. hover: Compiling 'go-flutter' and plugins hover: Successfully compiled executable binary for linux hover: Packaging app for linux-snap hover: Missing/Emptyauthor
field in pubspec.yaml. Please add it or otherwise you may publish your app with a wrong author. Continuing withhimanshu
as a placeholder author. hover: Missing/Emptylicense
field in go/hover.yaml. Please add it or otherwise you may publish your app with a wrong license. Continuing withNOASSERTION
as a placeholder license. hover: Packaging snap in /tmp/hover-build-passbook-linux-snap012990494 hover: Cleaning the build directory Launching a VM. mesg: ttyname failed: Inappropriate ioctl for device
mesg: ttyname failed: Inappropriate ioctl for device Source path "/tmp/hover-build-passbook-linux-snap012990494" does not exist An error occurred with the instance when trying to mount with 'multipass': returned exit code 1. Ensure that 'multipass' is setup correctly and try again. hover: exit status 2 hover: Packaging is very experimental and has mostly been tested on Linux. hover: Please open an issue at https://github.com/go-flutter-desktop/go-flutter/issues/new?template=BUG.md hover: with the log and a reproducible example if possible. You may also zip your app code hover: if you are comfortable with it (closed source etc.) and attach it to the issue.
Can you please help me resolving the error in case of packaging in snap.
Snap is pretty much broken and unmaintained. It shouldn't be used and I will remove it (at some point). If someone manages to get it working we can add it again.
Okay, thanks for resolving the issue.
On linux and mac:
git clone https://github.com/go-flutter-desktop/hover.git cd hover ./install-with-docker-image.sh
On windows do the same, but run the commands in
install-with-docker-image.sh
manually (not tested, but should work as far as I know):go install . set DOCKER_BUILDKIT=1 docker build . -t goflutter/hover:latest
Thanks!! I fixed the same issue on mac when build windows-exe.
Hover doctor
Error output
Using
hover build linux-deb --docker
to build my application, I get the following error: