Skip to content

Conversation

@shaunc311
Copy link
Collaborator

No description provided.

@shaunc311 shaunc311 mentioned this pull request Nov 7, 2024
Comment on lines +28 to +29
@ja_resource_repo Application.compile_env(:ja_resource, :repo)
if @ja_resource_repo do
Copy link
Collaborator

Choose a reason for hiding this comment

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

If i think harder I could figure it out but easier to ask: why compile vs get?

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

that's the issue with elixir 1.14. it doesn't want you to use fetch_env/get_env when you are outside of a function body because the value should be defined before compile time.

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