Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Order of operations prevents building Go module #4606

Open
bradleydwyer opened this issue Feb 24, 2025 · 0 comments
Open

Order of operations prevents building Go module #4606

bradleydwyer opened this issue Feb 24, 2025 · 0 comments
Assignees

Comments

@bradleydwyer
Copy link
Collaborator

If you reference a yet to be generated SQL verb e.g.

func SavePrice(ctx context.Context, price Price, client InsertPriceClient) error {

but have not yet added this to the queries.sql file

-- name: InsertPrice :exec
INSERT INTO prices (code, price, timestamp, currency) VALUES (?, ?, ?, ?);

The error is unrecoverable until you remove the InsertPriceClient reference. Adding the static query to queries.sql does not resolve the build.

@github-actions github-actions bot added the triage Issue needs triaging label Feb 24, 2025
@worstell worstell self-assigned this Feb 25, 2025
@github-actions github-actions bot removed the triage Issue needs triaging label Feb 25, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants