Skip to content

CAStore error when running as standalone script #133

@mbramson

Description

@mbramson

When running mix sobelow, I encounter the following error on version 0.12.1 of sobelow.

This occurs both locally and in CI (CircleCI).

code/elixir/test > mix archive.install hex sobelow
Resolving Hex dependencies...
Dependency resolution completed:
New:
  castore 1.0.1
  jason 1.4.0
  sobelow 0.12.1
* Getting sobelow (Hex package)
* Getting castore (Hex package)
* Getting jason (Hex package)
Resolving Hex dependencies...
Dependency resolution completed:
Unchanged:
  castore 1.0.1
  jason 1.4.0
All dependencies are up to date
==> jason
Compiling 10 files (.ex)
Generated jason app
==> castore
Compiling 1 file (.ex)
Generated castore app
==> sobelow
Compiling 51 files (.ex)
Generated sobelow app
Generated archive "sobelow-0.12.1.ez" with MIX_ENV=prod
Are you sure you want to install "sobelow-0.12.1.ez"? [Yn] Y
* creating /Users/mbramson/.asdf/installs/elixir/1.13.4/.mix/archives/sobelow-0.12.1

code/elixir/test > mix sobelow --config
** (UndefinedFunctionError) function CAStore.file_path/0 is undefined (module CAStore is not available)
    CAStore.file_path()
    lib/sobelow.ex:552: Sobelow.get_sobelow_version/0
    lib/sobelow.ex:581: Sobelow.maybe_prompt_update/2
    lib/sobelow.ex:34: Sobelow.run/0
    (mix 1.13.4) lib/mix/task.ex:397: anonymous fn/3 in Mix.Task.run_task/3
    (mix 1.13.4) lib/mix/cli.ex:84: Mix.CLI.run_task/2

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions