Skip to content

query macros with file is broken with cargo workspace  #1387

Closed
@AtkinsChang

Description

@AtkinsChang

Regression related to v0.5.6

when sqlx is used in sub-project, the macro use with SQL files behave differently with previous version: the file must exist in both root project and sub-project to compile.

this regression is introduced by #1332,
the path is different in following path:
https://github.com/launchbadge/sqlx/blob/master/sqlx-macros/src/query/input.rs#L144
https://github.com/launchbadge/sqlx/blob/master/sqlx-macros/src/query/input.rs#L123-L125

let me know if you need the reproduce scenario and fix
I'll do it when I have time

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions