influxdata/pkg-config

Windows issues with filepath strings

samaust opened this issue · 0 comments

I gave it a quick try on Windows. I found a few issues.

if strings.Contains(arg0, "/") {

This will contain "C:\" (or another letter) on Windows.

reModulePath := regexp.MustCompile(`/github\.com/influxdata\/flux@(v\d+\.\d+\.\d+.*)$`)

This will contain something like C:\installpath\github.com\influxdata\flux@v0.104.0

for cwd != "/" {

This will contain "C:\" on Windows. This last one causes an infinite loop.