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

Remove embed_migrations! temporarily #469

Closed
wants to merge 2 commits into from

Conversation

sgrif
Copy link
Member

@sgrif sgrif commented Oct 6, 2016

Unfortunately it will be impossible to write this macro using the Macros
1.1 API. While this is an important feature that I want to keep, I more
importantly want to keep the main repository working on stable. It will
have to live as a separate crate, and possibly have an API change to
work around build scripts.

@sgrif
Copy link
Member Author

sgrif commented Oct 6, 2016

Review? @diesel-rs/contributors

@sgrif sgrif force-pushed the sg-remove-embed-associations branch from d49cf44 to 2045662 Compare October 6, 2016 16:27
@killercup
Copy link
Member

So, the 0.8 announcement should probably mention that people using embed_migrations! should not update just yet.

CI failure is because of extern crate dotenv_codegen in diesel_test/build.rs and breaking changes in syntax. (Did you mean to remove the specific nightly date?)

@sgrif sgrif force-pushed the sg-remove-embed-associations branch from 2045662 to c8b1f3a Compare October 7, 2016 11:43
Unfortunately it will be impossible to write this macro using the Macros
1.1 API. While this is an important feature that I want to keep, I more
importantly want to keep the main repository working on stable. It will
have to live as a separate crate, and possibly have an API change to
work around build scripts.
@sgrif sgrif force-pushed the sg-remove-embed-associations branch from c8b1f3a to 250b445 Compare October 7, 2016 22:57
@sgrif
Copy link
Member Author

sgrif commented Oct 7, 2016

Fixed those failures, but now seeing a really cryptic message from Cargo about path overrides doing things incorrectly. We've also got the rustc-macro -> proc-macro rename landing tonight so I'm going to wait until tomorrow to figure this out

@sgrif
Copy link
Member Author

sgrif commented Oct 7, 2016

And there's more dead code to remove

@weiznich
Copy link
Member

weiznich commented Oct 9, 2016

@sgrif If we change the root location of the relative path used in this macro it is possible to implement this using macros 1.1. See #470 .

We appear to no longer be able to use `paths =` from `.cargo/config`, as
it blows up when the dependencies of the overriden crate differ from the
released version. This unfortunately means that we'll need to manually
specify the overrides in every single one of our crates for development
on master. Hopefully we can have a better solution long term, in the
mean time this is the only option that will compile.
@sgrif sgrif closed this Oct 10, 2016
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

Successfully merging this pull request may close these issues.

3 participants