Coder Social home page Coder Social logo

Comments (9)

bitwalker avatar bitwalker commented on July 22, 2024

@dewie Could you run the following:

  • mix deps.get
  • MIX_ENV=prod mix compile
  • MIX_ENV=prod mix release

And let me know if it still fails? I'm confused on how you could have gotten that message about the dependency not being locked, but the steps above should ensure that everything is fetched/locked and compiled before attempting to build the release.

from conform.

dewie avatar dewie commented on July 22, 2024

Hi,

I have made a release today with exrm 19.9 today.
Added conform with your code and tried a release.
This worked

But when i added the following

mix conform.new
mix conform.configure
MIX_ENV=prod mix release

I got the same error

==> conform
Unchecked dependencies for environment prod:

  • exrm (Hex package)
    the dependency is not locked (run "mix deps.get" to generate
    "mix.lock" file)
    ==> Failed to execute before_release hook for
    Elixir.ReleaseManager.Plugin.Conform!
    ==> qrgateway
    ** (Mix) Can't continue due to errors on dependencies

I also tried to generate the config with:

MIX_ENV=prod mix conform.new
MIX_ENV=prod mix conform.configure

I have attached the generated conform files

On 27-11-15 18:16, Paul Schoenfelder wrote:

@dewie https://github.com/dewie Could you run the following:

  • |mix deps.get|
  • |MIX_ENV=prod mix compile|
  • |MIX_ENV=prod mix release|

And let me know if it still fails? I'm confused on how you could have
gotten that message about the dependency not being locked, but the steps
above should ensure that everything is fetched/locked and compiled
before attempting to build the release.


Reply to this email directly or view it on GitHub
#53 (comment).

Provide documentation for qrgateway.Elixir.Qrgateway.Endpoint.url.host here.

qrgateway.Elixir.Qrgateway.Endpoint.url.host = "example.com"

Provide documentation for qrgateway.Elixir.Qrgateway.Endpoint.url.port here.

qrgateway.Elixir.Qrgateway.Endpoint.url.port = 80

Provide documentation for qrgateway.Elixir.Qrgateway.Endpoint.root here.

qrgateway.Elixir.Qrgateway.Endpoint.root = "/home/daniel/development/elixir/qrgateway"

Provide documentation for qrgateway.Elixir.Qrgateway.Endpoint.secret_key_base here.

qrgateway.Elixir.Qrgateway.Endpoint.secret_key_base = "DmgKGQ6s06cJ0lkRDlCqsCHZuuQ4m3SDi4+O3XMZNfcutSGGynPH5hFP+YaFd13/"

Provide documentation for qrgateway.Elixir.Qrgateway.Endpoint.render_errors.accepts here.

qrgateway.Elixir.Qrgateway.Endpoint.render_errors.accepts = "html", "json"

Provide documentation for qrgateway.Elixir.Qrgateway.Endpoint.pubsub.name here.

qrgateway.Elixir.Qrgateway.Endpoint.pubsub.name = Elixir.Qrgateway.PubSub

Provide documentation for qrgateway.Elixir.Qrgateway.Endpoint.pubsub.adapter here.

qrgateway.Elixir.Qrgateway.Endpoint.pubsub.adapter = Elixir.Phoenix.PubSub.PG2

Provide documentation for qrgateway.Elixir.Qrgateway.Endpoint.http.port here.

qrgateway.Elixir.Qrgateway.Endpoint.http.port = system = "PORT"

Provide documentation for qrgateway.Elixir.Qrgateway.Endpoint.cache_static_manifest here.

qrgateway.Elixir.Qrgateway.Endpoint.cache_static_manifest = "priv/static/manifest.json"

Provide documentation for qrgateway.Elixir.Qrgateway.Endpoint.server here.

qrgateway.Elixir.Qrgateway.Endpoint.server = true

Provide documentation for qrgateway.Elixir.Qrgateway.Repo.adapter here.

qrgateway.Elixir.Qrgateway.Repo.adapter = Elixir.Mongo.Ecto

Provide documentation for qrgateway.Elixir.Qrgateway.Repo.database here.

qrgateway.Elixir.Qrgateway.Repo.database = "qrg"

Provide documentation for qrgateway.Elixir.Qrgateway.Repo.hostname here.

qrgateway.Elixir.Qrgateway.Repo.hostname = "localhost"

Provide documentation for qrgateway.Elixir.Qrgateway.Repo.username here.

qrgateway.Elixir.Qrgateway.Repo.username =

Provide documentation for qrgateway.Elixir.Qrgateway.Repo.password here.

qrgateway.Elixir.Qrgateway.Repo.password =

Provide documentation for logger.console.format here.

logger.console.format = "$time $metadata[$level] $message
"

Provide documentation for logger.console.metadata here.

logger.console.metadata = request_id

Provide documentation for logger.level here.

logger.level = info

Provide documentation for phoenix.generators.migration here.

phoenix.generators.migration = true

Provide documentation for phoenix.generators.binary_id here.

phoenix.generators.binary_id = false

Provide documentation for phoenix.template_engines.haml here.

phoenix.template_engines.haml = Elixir.PhoenixHaml.Engine

from conform.

bitwalker avatar bitwalker commented on July 22, 2024

You can't use conform >= 1.x with exrm < 1.x, because the conform plugin for exrm was moved from exrm to conform, so if you use the new version of conform with the old version of exrm, there will be conflicts. The new version of the conform plugin is also depending on changes made in exrm 1.x. Could you try with exrm 1.0.0-rc6?

from conform.

dewie avatar dewie commented on July 22, 2024

I was using exrm 1.0.0-rc5 , 1.0.0.6 gives me the same problem.

I can send you the project if that helps (just a small test application)

On 27-11-15 18:52, Paul Schoenfelder wrote:

You can't use |conform| >= 1.x with |exrm| < 1.x, because the conform
plugin for exrm was moved from exrm to conform, so if you use the new
version of conform with the old version of exrm, there will be
conflicts. The new version of the conform plugin is also depending on
changes made in exrm 1.x. Could you try with exrm 1.0.0-rc6?


Reply to this email directly or view it on GitHub
#53 (comment).

from conform.

bitwalker avatar bitwalker commented on July 22, 2024

Sure if you can send me a link to the test app, I'll clone it and test locally.

from conform.

dewie avatar dewie commented on July 22, 2024

It is in a private repository,
I will send it by wetransfer (including _build folder) = 13mb.

Can i use [email protected] ?

On 27-11-15 19:16, Paul Schoenfelder wrote:

Sure if you can send me a link to the test app, I'll clone it and test
locally.


Reply to this email directly or view it on GitHub
#53 (comment).

from conform.

bitwalker avatar bitwalker commented on July 22, 2024

Yep! No problem

from conform.

bitwalker avatar bitwalker commented on July 22, 2024

@dewie Ok I found the issue with this, and pushed a fix and a new release 1.0.0-rc5. The problem was that the conform.release task changes the Mix env to prod when it builds the conform escript, however the exrm dependency won't be available when it does so (unless you MIX_ENV=prod mix compile first). Since that change of environment is not actually necessary, I've removed it for now.

from conform.

dewie avatar dewie commented on July 22, 2024

Thanks!

from conform.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.