Mix local repository - (SyntaxError) mix.exs:25: syntax error before

Trying to use local repository and step through adding local rep for dependencies
copied from git

ecto

to
C:\bwdata\elixirhttp\ora\deps\ecto

get following error on mix deps.get
** (SyntaxError) mix.exs:25: syntax error before: “C:/bwdata/elixirhttp/ora/ora_deps/ecto”

defmodule Ora.MixProject do
  use Mix.Project

  def project do
    [
      app: :ora,
      version: "0.1.0",
      elixir: "~> 1.12",
      start_permanent: Mix.env() == :prod,
      deps: deps()
    ]
  end

  # Run "mix help compile.app" to learn about applications.
  def application do
    [
      extra_applications: [:logger, :ecto, :jamdb_oracle],
      mod: {Ora.Application, []}
    ]
  end

  # Run "mix help deps" to learn about dependencies.
  defp deps do
    [
	 {:ecto,"~> 3.5.5",:path "C:/bwdata/elixirhttp/ora/ora_deps/ecto"}
      # {:dep_from_hexpm, "~> 0.3.0"},
      # {:dep_from_git, git: "https://github.com/elixir-lang/my_dep.git", tag: "0.1.0"}
	 
	  # "~> 3.0",
	  #{:jamdb_oracle, git: "https://github.com/erlangbureau/jamdb_oracle.git"},
	 # {:ecto, git: "https://github.com/elixir-ecto/ecto.git", tag: "3.5.5"}
      #{:jamdb_oracle,:path "C:/bwdata/elixirhttp/ora/ora_deps"}
	  #  "~>0.3.2",
    ]
  end
end

Please try this (I added spaces after commas, and corrected path as a keyword list option)

{:ecto, "~> 3.5.5", path: "C:/bwdata/elixirhttp/ora/ora_deps/ecto"}

You can refer to the docs at mix deps — Mix v1.12.3
or run mix help deps to learn more about dependencies.

1 Like

Thanks
that got me going!!!

much appreciated

1 Like

:slight_smile: you are welcome, happy it helped.
please note that you can format your code snippets as preformatted-text (with the </> button) to improve readability and help others to inspect the code. :vulcan_salute:

2 Likes