Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

chore: Fix Windows build #5067

Merged
merged 1 commit into from May 7, 2024
Merged

chore: Fix Windows build #5067

merged 1 commit into from May 7, 2024

Conversation

Cuteivist
Copy link
Contributor

@Cuteivist Cuteivist commented Apr 17, 2024

Windows doesn't have NIX platform.
Building status-go on Windows caused these errors:

$ make status-go
make status-go

Tip of the day: this will probably build faster if you use "make.exe -j32 ...".

Building: status-go
D:\git\status\status-desktop-tmp\vendor\status-go\nix\scripts\shell.sh: line 10: cd: D:\git\status\status-desktop-tmp\vendor\status-go\nix\scripts\shell.sh: Not a directory
D:\git\status\status-desktop-tmp\vendor\status-go\nix\scripts\shell.sh: line 11: /scripts/colors.sh: No such file or directory
D:\git\status\status-desktop-tmp\vendor\status-go\nix\scripts\shell.sh: line 12: /nix/scripts/source.sh: No such file or directory
Configuring Nix shell for target 'default'...
D:\git\status\status-desktop-tmp\vendor\status-go\nix\scripts\shell.sh: line 65: /nix/scripts/gcroots.sh: No such file or directory
D:\git\status\status-desktop-tmp\vendor\status-go\nix\scripts\shell.sh: line 73: exec: nix-shell: not found
D:\git\status\status-desktop-tmp\vendor\status-go\nix\scripts\shell.sh: line 10: cd: D:\git\status\status-desktop-tmp\vendor\status-go\nix\scripts\shell.sh: Not a directory
D:\git\status\status-desktop-tmp\vendor\status-go\nix\scripts\shell.sh: line 11: /scripts/colors.sh: No such file or directory
D:\git\status\status-desktop-tmp\vendor\status-go\nix\scripts\shell.sh: line 12: /nix/scripts/source.sh: No such file or directory
Configuring Nix shell for target 'default'...
D:\git\status\status-desktop-tmp\vendor\status-go\nix\scripts\shell.sh: line 65: /nix/scripts/gcroots.sh: No such file or directory
D:\git\status\status-desktop-tmp\vendor\status-go\nix\scripts\shell.sh: line 73: exec: nix-shell: not found
make[1]: *** [Makefile:225: statusgo-shared-library] Error 127
make: *** [Makefile:433: vendor/status-go/build/bin/libstatus.dll] Error 2

@status-im-auto
Copy link
Member

status-im-auto commented Apr 17, 2024

Jenkins Builds

Click to see older builds (8)
Commit #️⃣ Finished (UTC) Duration Platform Result
✖️ 961729d #1 2024-04-17 11:23:10 ~57 sec tests 📄log
✔️ 961729d #1 2024-04-17 11:25:56 ~3 min linux 📦zip
✔️ 961729d #1 2024-04-17 11:28:00 ~5 min android 📦aar
✔️ 961729d #1 2024-04-17 11:28:11 ~5 min ios 📦zip
✖️ 81d969d #2 2024-04-17 11:49:15 ~3 min tests 📄log
✔️ 81d969d #2 2024-04-17 11:50:10 ~4 min linux 📦zip
✔️ 81d969d #2 2024-04-17 11:53:23 ~7 min android 📦aar
✔️ 81d969d #2 2024-04-17 12:21:33 ~35 min ios 📦zip
Commit #️⃣ Finished (UTC) Duration Platform Result
✔️ d91bd8a #3 2024-04-23 11:52:00 ~4 min linux 📦zip
✔️ d91bd8a #3 2024-04-23 11:53:27 ~5 min ios 📦zip
✔️ d91bd8a #3 2024-04-23 11:53:32 ~5 min android 📦aar
✖️ d91bd8a #3 2024-04-23 12:29:18 ~41 min tests 📄log
✔️ d014627 #4 2024-05-07 11:02:33 ~3 min ios 📦zip
✔️ d014627 #4 2024-05-07 11:02:52 ~4 min linux 📦zip
✔️ d014627 #4 2024-05-07 11:03:31 ~4 min android 📦aar
✔️ d014627 #4 2024-05-07 11:41:21 ~42 min tests 📄log

@Cuteivist Cuteivist marked this pull request as ready for review April 17, 2024 11:47
Copy link
Member

@jakubgs jakubgs left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Windows doesn't have NIX platform.

You can use Nix via WSL2: https://github.com/nix-community/NixOS-WSL

Also, why would you develop on Windows? Are you a masochist?

Makefile Outdated
@@ -105,7 +105,9 @@ endef

# TODO: Define more specific shells.
TARGET := default
SHELL := ./nix/scripts/shell.sh
ifneq ($(detected_OS),Windows)
SHELL := ./nix/scripts/shell.sh
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The indent is unnecessary. This is not a target.

Suggested change
SHELL := ./nix/scripts/shell.sh
SHELL := ./nix/scripts/shell.sh

@Cuteivist
Copy link
Contributor Author

@jakubgs Thank you for review.

Also, why would you develop on Windows? Are you a masochist?

Users will use Windows too, even someone will try to build it on Windows. It's good to have at least 1 dev on Windows to keep build process in the shape.

@Cuteivist Cuteivist merged commit 7ba9a00 into develop May 7, 2024
7 checks passed
@Cuteivist Cuteivist deleted the chore/fix-windows-build branch May 7, 2024 12:02
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants