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

Windows e2e runner reports awk failure #5

Open
brad-defined opened this issue Mar 15, 2022 · 0 comments
Open

Windows e2e runner reports awk failure #5

brad-defined opened this issue Mar 15, 2022 · 0 comments

Comments

@brad-defined
Copy link
Contributor

The Windows e2e runner reports the following error:

Run make e[2](https://github.com/DefinedNet/nebula/runs/5554733633?check_suite_focus=true#step:8:2)evv
  make e2evv
  shell: C:\Program Files\PowerShell\7\pwsh.EXE -command ". '{0}'"
  env:
    GOROOT: C:\hostedtoolcache\windows\go\1.17.7\x64
awk: cmd. line:1: {print substr(, [3](https://github.com/DefinedNet/nebula/runs/5554733633?check_suite_focus=true#step:8:3))}
awk: cmd. line:1:               ^ syntax error
awk: cmd. line:1: {print substr(, 3)}
awk: cmd. line:1:                  ^ 1 is invalid as number of arguments for substr
/usr/bin/bash: IF: command not found

Here: https://github.com/DefinedNet/nebula/runs/5554733633?check_suite_focus=true#step:8:1

Looks to be an issue in the Makefile

# Set up OS specific bits
ifeq ($(OS),Windows_NT)
	#TODO: we should be able to ditch awk as well
	GOVERSION := $(shell go version | awk "{print substr($$3, 3)}")
	GOISMIN := $(shell IF "$(GOVERSION)" GEQ "$(GOMINVERSION)" ECHO 1)
	NEBULA_CMD_SUFFIX = .exe
	NULL_FILE = nul
else
	GOVERSION := $(shell go version | awk '{print substr($$3, 3)}')
	GOISMIN := $(shell expr "$(GOVERSION)" ">=" "$(GOMINVERSION)")
	NEBULA_CMD_SUFFIX =
	NULL_FILE = /dev/null
endif
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

No branches or pull requests

1 participant