Can't use after installing - flag provided but not defined: -m

This issue has been created since 2021-06-03.

Hi,

I installed xcaddy in Ubuntu 18.04:
[email protected]:~$ sudo apt install xcaddy password for maya: package lists... Done dependency tree `` Reading state information... Done xcaddy is already the newest version (0.1.9). The following package was automatically installed and is no longer required: libnginx-mod-http-geoip Use 'sudo apt autoremove' to remove it. 0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
I have Go installed:
[email protected]:~$ go version go version go1.10.4 linux/amd64
And I have Caddy installed:
[email protected]:~$ caddy version v2.4.1 h1:kAJ0JB5Xk5gPdTH/27S5cyoMGqD5lBAe9yZ8zTjVJa0=
But every command I try results in the following error:
[email protected]:~$ xcaddy list-modules flag provided but not defined: -m usage: list [-e] [-f format] [-json] [build flags] [packages] Run 'go help list' for details. 2021/06/03 06:44:04 [ERROR] exec [go list -m]: exit status 2:

Please help,
Thanks!

ms567 wrote this answer on 2021-06-03

The problem was Go version, updated to Go 1.16 and problem solved

More Details About Repo
Owner Name caddyserver
Repo Name xcaddy
Full Name caddyserver/xcaddy
Language Go
Created Date 2020-03-21
Updated Date 2022-09-22
Star Count 381
Watcher Count 14
Fork Count 72
Issue Count 3

YOU MAY BE INTERESTED

Issue Title Created Date Comment Count Updated Date
Error installing dependencies with "pip3 install -r requirements.txt" 1 2022-07-08 2022-09-25
no build yet, install_dependencies.sh stalls on linux 2 2021-11-06 2022-08-17
Test Jobs sit and never get processed 1 2021-04-09 2022-07-23
On install all image transforms happen again and stall. 1 2021-05-18 2022-08-07
Allow user to specify download speed. 1 2021-08-28 2022-07-16
mql4 Expert initialized successfully and Publish_MarketData is True but in terminal: expert lab, it doesn't send bid/ask data! 1 2021-02-11 2022-07-23
item_model_bindings relation.name not working 2 2021-06-24 2022-09-13
Specify how `print` works for `float` values 0 2022-06-21 2022-08-08
[MISC] Quickstart example does not work 5 2021-11-08 2022-08-30
[REQUEST] Add support for autocomplete of slash command options 2 2021-10-28 2022-08-26
Lots of warnings like 'replaced rule for ...' 8 2016-12-06 2022-09-07
Weird Issue with text and textures 4 2021-05-30 2022-08-07
Can't display anything on either Brave or Chrome 3 2020-08-26 2022-02-04
请迁移至 Python3 (Please migrate to python3) 5 2019-01-05 2022-09-22
Threat .avif as image 0 2022-01-30 2022-08-24
This loader is not working with absolute paths. 6 2022-08-10 2022-09-21
setGroup array properties 2 2021-10-20 2022-08-31
TypeScript complains with `This expression is not callable.` using basic init 4 2022-06-02 2022-09-25
Native middleware don't use replaced http.Request 0 2021-06-29 2022-09-02
Does not scroll to result on current page in Safari 1 2022-05-27 2022-09-28
Default Grafana login credentials 2 2022-01-21 2022-09-28
[Design studio] import OAS file blocked after a wrong file type 1 2021-12-02 2022-07-14
CloudFormation Stack Error in cn-northwest-1 region 1 2020-11-04 2022-09-27
Investigate options for Bazel remote caches 10 2022-04-13 2022-09-27
package-install requires lodash, preventing fresh installs 3 2022-02-14 2022-09-13
[css-ui] Should inertness be exposed as CSS property? 4 2022-02-08 2022-07-31
Destination and netmask are the same (which is not the case) 1 2022-05-15 2022-09-23
Help with trampoline instructions (adding BPF llvm target) 4 2022-08-27 2022-09-19
Request for recommendation of the advertisement JSON for ECDH key agreement test 3 2021-09-30 2022-09-28
SHA LargeDataTest "Optional" Status 3 2021-09-24 2022-09-28
Bugs with IterableDataset 3 2021-12-10 2022-09-12
Lack of documentation for most methods 4 2020-03-04 2022-09-18
Have a question or need help using IoT Edge developer tooling? 0 2021-12-09 2022-09-27
error when run the model supercombo.onnx in onnx_runner.py 9 2022-05-14 2022-09-22
How to simply test function args in a pipeline shared library ? 3 2020-10-25 2022-09-24
How to detect the first attendee join the meeting. 2 2022-08-03 2022-09-21
Update aws sdk to v1.37.32 9 2021-02-22 2022-08-23
Further extending the meaning of `?` to check for nulls 3 2021-09-24 2022-09-23
Enabling ESPHome encryption causes unexpected behavior 7 2021-10-01 2022-09-16
Use HTML kbd tag for keyboard information 9 2021-10-17 2022-08-22
Bug753307 - Custom Report be selectable as default Report for Printing 17 2021-07-21 2022-09-19
Add support for ${fileDirname} in settings.json 5 2021-10-10 2022-09-01
Seller Exp - SPIKE: Verify and analyze Seller Experience Tracks information 3 2022-03-10 2022-09-25
Get rid of `synchronized(GlobalSnapshotManager)` which was added to avoid races with ImageComposeScene 1 2022-02-16 2022-09-13
Transaction pending ack generate managedLedgerStats fail! 2 2022-01-20 2022-09-03
[@vuetify/vite-plugin] the plugin doesn't load components listed in external libraries 1 2022-09-18 2022-09-21
Android app crashes when using ImagePicker() 5 2022-05-16 2022-08-11
Got this error while running flutter doctor 2 2022-05-16 2022-09-07
"Engine run configuration was invalid. " when push to flutter from swift using cocoapods 2 2022-05-16 2022-08-30
[Flutter 3.0.0] `flutter analyze` fails on newly created project 39 2022-05-16 2022-09-22