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

Reorganize repo as a lib with example, rather than an umbrella app #33

Merged
merged 3 commits into from
Nov 2, 2016

Conversation

darinwilson
Copy link
Contributor

This is a large PR that completely reorganizes the project so that it is no longer an umbrella app. Instead, it is a simple mix app, with the torch library code at the top level, and the example app places in an apps subdirectory.

The example app points to torch using the path option in mix.exs so it can be continue to be used for development and testing of torch itself.

The motivation for this change was initially described in #24, but there's now a further pressing need, as the new version of hex (0.14.0) apparently no longer supports libraries created as apps within umbrella apps. Specifically, the extra path configurations used within umbrella apps seems to cause compile errors when integrated with another app.

For all these reasons, I believe this project architecture is the best way forward.

In the original configuration, this project was an umbrella app, with
one app being the torch lib itself, and the other app being the example.
This proved problemmatic for a number of reason, so this rather sizeable
commit reorganizes the repo so that the torch lib is at the top level,
and the example app is in the apps dir.
Copy link
Contributor

@zberkom zberkom left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks great! Thanks for tackling this Darin.

@zberkom zberkom merged commit 8b37449 into mojotech:master Nov 2, 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.

2 participants