Publish fork on hex (--replace flag)

Hello :slight_smile:

I did a fork (I hope it is temporary) and now i need to publish the package. The problem is

must include the --replace flag to update an existing package

I don’t want to “touch” the original lib. I’ve changed the :app value in mix.exs.

I’m not sure what is going on here and why I should replace anything

Can you show your mix.exs file?

  • Sure, the (+) sign is where I edit it
use Mix.Project

  +@source_url "new"
  @version "0.4.7"

  def project do
    [
     + app: :name,
      version: @version,
    +  elixir: "~> 1.12",
    +  name: "name",
      source_url: @source_url,
      homepage_url: @source_url,
      package: package(),
      description: description(),
      build_embedded: Mix.env() == :prod,
      start_permanent: Mix.env() == :prod,
      deps: deps(),
      docs: [source_ref: "#{@version}", extras: ["README.md"], main: "readme"]
    ]
  end
  def application do
    [applications: [:logger]]
  end

  defp deps do
    [{:ex_doc, ">= 0.0.0", only: :dev}]
  end

  defp description do
    + "desc forked from..."
  end
    
  defp package do
    [
      files: ["lib", "mix.exs", "README.md", "LICENSE"],
      maintainers: ["mantainer"],
      licenses: ["MIT"],
     + organization: "my org",
      links: %{"GitHub" => @source_url}
    ]