Skip to content

[bug] moon v2 offline mode still download wasm plugins #2421

@sybernatus

Description

@sybernatus

Describe the bug

I'm trying to migrate to moon v2 but the offline mode seems to download wasm plugins from internet.

  • proto & moon are both installed during the image build
  • I have no toolchains configured.
  • My CI pipeline run with PROTO_OFFLINE=true as env variable
  • I have also try to put the missing wasm in my image under one of PATH folder (system_toolchain-v1.0.2/system_toolchain.wasm)

It seems that the following error continue to show up.

Maybe the wasm must be placed at a very specific location to be detected and avoir downloading it?

moon ci :test :lint --quiet --cache off
Error: plugin::offline
  × Unable to download plugin. An internet connection is required to request
  │ https://github.com/moonrepo/plugins/releases/download/system_toolchain-
  │ v1.0.2/system_toolchain.wasm.
Step failed

Steps to reproduce

  1. Configure moon in offline mode
  2. Run a task without internet connection

Expected behavior

Should be run completely without internet access.

Screenshots

Here is the location of the wasm needed in my container:
Image

And there is no toolchains.yml

moon.log

Image

Environment

moon v2.0.4
proto v0.55.4

Additional context
I have attached some trace logs from the command I played

Metadata

Metadata

Assignees

Labels

bugSomething isn't working

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions