Join GitHub today
GitHub is home to over 28 million developers working together to host and review code, manage projects, and build software together.
Sign upembed_migrations! misbehaves in workspaces #1873
Comments
This comment has been minimized.
|
I was able to work around this with |
This comment has been minimized.
|
The path given is resolved relative to the |
sgrif
closed this
Oct 7, 2018
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
kpcyrd commentedOct 5, 2018
Setup
foo/Cargo.toml<- this is my workspacefoo/target<- this is the workspace build folderfoo/bar/Cargo.toml<- my other projectfoo/bar/assets/foo.bin<- an assetfoo/bar/migrations<- my migrationsfoo/bar/src/main.rs<- this file has embed_migrations!Versions
Problem Description
I have to specify the path differently from what I'm doing in
include_bytes!:while I can do the following with assets:
The problem is that the macro panics during
cargo package, probably since the path doesn't match anymore during a publish/package, whileinclude_bytes!seems to work.I couldn't find a way to workaround this yet, changing this to "../migrations" for the release didn't seem to work either.