influxdata / pkg-config

PROTOTYPE: A pkg-config drop-in for compiling C libraries for InfluxData

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Windows issues with filepath strings

samaust opened this issue · 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.