Skip to content

query macros with file is broken with cargo workspace  #1387

Closed

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

Activity

  1. abonander commented on Aug 18, 2021

    @abonander
    Collaborator

    If you feel like fixing this, that'd be great, otherwise I'll try to get to this when I can and kick out another patch release.

  2. added a commit that references this issue on Aug 20, 2021
    9231bdf
  3. added a commit that references this issue on Aug 20, 2021
    c04f83b
  4. added 2 commits that reference this issue on Nov 19, 2021
    6cdb35d
    b5a95c4
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

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