Skip to content

Unable to start dryrun in windows #43

Description

@io-kup

When installing dryrun in windows with npx server/program cannot be started:

npx @boringsql/dryrun --version
Need to install the following packages:
@boringsql/dryrun@0.10.0
Ok to proceed? (y)

panic: failed to load embedded SQL: Error opening SQL file 'activity_stats.sql': open sql\activity_stats.sql: file does not exist

goroutine 1 [running]:
github.com/boringsql/dryrun/internal/schema.init.0()
        D:/a/dryrun/dryrun/internal/schema/introspect.go:41 +0xca
npm notice
npm notice New minor version of npm available! 11.6.2 -> 11.17.0
npm notice Changelog: https://github.com/npm/cli/releases/tag/v11.17.0
npm notice To update run: npm install -g npm@11.17.0
npm notice

Cloning the repo in windows and trying to build locally resulted in:

go build -a -o dryrun.exe .\cmd\dryrun

# github.com/boringsql/queries

..\queries\queries.go:89:39: use of package path not in selector

Looks like in package github.com/boringsql/queries in LoadFromEmbed(sqlFS embed.FS, dir string), the first call to fs.ReadDir passes the identifier path — which resolves to the imported "path" stdlib package.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions