Comments (6)
👋🏼 @LostKobrakai Thanks a lot for your effort, I will take a look and let's discuss what we can do about it in this issue 👍🏼
from avrora.
Ok, I can confirm that I see the issue with umbrella releases and 2 different clients root dirs. Let me read a bit about umbrella releases
from avrora.
After a few modifications of the issue reproduction repo, I would like to propose the same way as Ecto is doing it.
defmodule ReproB.Client do
use Avrora.Client,
otp_app: :repro_b,
schemas_path: "./priv/schemas"
end
An :otp_app
option will be for the private client only, since a shared client can't be used with more than 1 app. I've tested and it seems working fine.
Does it make sense to you? WDYT?
from avrora.
The umbrella part here should really be irrelevant. The important bit is that Application.app_dir
at compile time will point at _build/…
, which will neither be available to releases once moved to another machine, nor when the application is used as a dependency in another project. Plain relative paths do not work given mix and releases use different folder structures.
The solution will involve running Application.app_dir
at runtime instead of compile time in some form. How we supply the inputs for that doesn't really matter to me.
from avrora.
Yeah, I get it. It actually still relevant for both Avrora and its private clients. I will push proposed configuration this week 🗓️
from avrora.
Heads up @LostKobrakai, I would like to say thanks for your great support, it was very helpful to have an example app. A new configuration option was added to the private client and shared client – otp_app
, which will be used to resolve the path to the schemas in a runtime. Thanks 🎉 🍾
from avrora.
Related Issues (20)
- Empty user-agent in header when calling registry
- schema evolution support HOT 7
- hook to skip certain fields. HOT 2
- Fix warnings introduced in elixir 1.15 HOT 2
- logicalType: date HOT 5
- Allow mix task to accept a Client to be used for registration
- Drop unnecessary configuration options
- Remove plain format from decode/2 and encode/2
- Warnings on compilation HOT 4
- Maintain a CHANGELOG? HOT 5
- Dialyzer issues with private clients HOT 2
- "Messages encoded with OCF are wrapped in a List" what for? HOT 1
- Allow 3 named types to be used as root schemas
- Get schema name on decode HOT 3
- Add deprecation warning for encode with plain format
- Any way to configure the registry_url at startup? HOT 8
- Option for decoding with tagged union values HOT 7
- unnamed_type error with primary type schema HOT 11
- Add option to enable SSL verification of registry requests
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from avrora.