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
chore: Fix Windows build #5067
Conversation
Jenkins BuildsClick to see older builds (8)
|
961729d
to
81d969d
Compare
81d969d
to
d91bd8a
Compare
There was a problem hiding this 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 |
There was a problem hiding this comment.
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.
SHELL := ./nix/scripts/shell.sh | |
SHELL := ./nix/scripts/shell.sh |
d91bd8a
to
d014627
Compare
@jakubgs Thank you for review.
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. |
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