Closed kuzm1ch closed 4 years ago
/cc @PatrickXYS
@kuzm1ch There's no difference between Linux / macOS in kfctl code.
The only difference is
CGO_ENABLED=0 GOOS=darwin GOARCH=amd64 ${GO} build -gcflags '-N -l' -ldflags "-X main.VERSION=${TAG}" -o bin/darwin/kfctl cmd/kfctl/main.go
CGO_ENABLED=0 GOOS=linux GOARCH=amd64 ${GO} build -gcflags '-N -l' -ldflags "-X main.VERSION=$(TAG)" -o bin/linux/kfctl cmd/kfctl/main.go
CGO_ENABLED=0 GOOS=linux GOARCH=arm64 ${GO} build -gcflags '-N -l' -ldflags "-X main.VERSION=$(TAG)" -o bin/arm64/kfctl cmd/kfctl/main.go
It's weird that linux binary works but macOS failed, I'm still guessing it's AWS credential configuration issue. Can you confirm that linux and macOS are running in the same environment by using env
to check the env variable diff.
I've lost quite a lot of time to find the root cause(hope this reply will help somebody else). @PatrickXYS you're right, it was AWS credential configuration issue.
~ vim ~/.aws/config
region = eu-central-1<tab>
:syntax on
:set syntax=whitespace
it was a tricky tab in the config file, but aws cli works without any issues. Anyway, eu-central-1\t
this error message should point me into the right direction.
OS: macOS Cataline 10.15.17 kfctl version: kfctl v1.1.0-0-g9a3621e
Error:
In the same time, Linux binary is working as expected. The root may be related to "\t" in AWS URL.