Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

docker run --rm -v $(pwd):/src -w /src kjconroy/sqlc generate not working on windows 10 OS #880

Answered by kyleconroy
rassidm asked this question in Q&A
Discussion options

docker run --rm -v $(pwd):/src -w /src kjconroy/sqlc generate not working on windows 10 OS

I tried :

docker run --rm -v %cd% -w /src kjconroy/sqlc generate
not working
my sqlc.yaml is in current directory same path returned by %cd%

You must be logged in to vote

I added Windows support (#886) here, which means you can now download tip releases for Windows. A huge caveat: these builds do not support the PostgreSQL engine.

Replies: 4 comments 2 replies

Comment options

Can you provide a bit more information? When you say "not working", what do you mean? Is there any output? Is there an error message?

You must be logged in to vote
0 replies
Comment options

Please add a way that we can install SQLC on Windows 10 using chocolatey or Scoop
Thank you very much for your Great work :)

You must be logged in to vote
0 replies
Comment options

I added Windows support (#886) here, which means you can now download tip releases for Windows. A huge caveat: these builds do not support the PostgreSQL engine.

You must be logged in to vote
0 replies
Answer selected by kyleconroy
Comment options

i tried : docker run --rm -v D:\simplebank:/src -w /src kjconroy/sqlc generate

return this :# package db
error parsing queries: path /src/db/query does not exist
Makefile:17: recipe for target 'sqlc' failed

how to solve

You must be logged in to vote
2 replies
Comment options

docker run --rm \
	-v ${PWD}:/src \
	-w /src \
	kjconroy/sqlc \
	generate
Comment options

if ${PWD} does not work these below do

-v "$(pwd)":/src

or with subfolders

-v "$(pwd)"/path1/path2:/src

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

AltStyle によって変換されたページ (->オリジナル) /