"at sign (@)" in local fork path trips up module path

This issue has been created since 2022-07-29.

With a project like this:

$ pwd
# /home/devin/projects/@relay/caddy-bin
$ ls ..
# caddy-bin
# caddy-dns-cloudflare
$ xcaddy build --with github.com/caddy-dns/cloudflare=../caddy-dns-cloudflare

The build fails with this error:

/tmp/buildenv_2022-07-28-1550.3872914361/go.mod:5: malformed module path "/home/devin/projects/": trailing slash

If I symlink the fork directory outside of the @relay directory and specify the absolute path to the symlink instead of the relative one, xcaddy builds correctly. I understand this might come from the simple implementation tied to go modules, but it would be better if xcaddy worked with any local directory name.

mholt wrote this answer on 2022-07-31

@devinark Yeah, I mean, Go doesn't like @ in package paths either

$ go get github.com/@mholt/foo
go: [email protected]/foo: invalid version: version "mholt/foo" invalid: disallowed version tring

If you want support for @ in package paths, you probably want to take the issue upstream with the Go project.

mholt wrote this answer on 2022-07-31

Oh, but maybe this is about a file path and not a module path... will give this a second look.

mholt wrote this answer on 2022-07-31

Ok, well not gonna lie this is kind of a weird one 😖

xcaddy will handle paths with @ in them now, but it requires that a version is also specified at the end using the usual @version syntax for Go modules. This is to disambiguate; if there's more than one @ then we know the last one is the version.

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
Compiler warnings and errors on the swift-concurrency branch 1 2021-09-19 2022-09-21
Void member function should not return a value from array manipulations 1 2022-05-21 2022-09-19
SSLError: [SSL: CERTIFICATE_VERIFY_FAILED] certificate verify failed (_ssl.c:590) 24 2021-10-03 2022-08-13
Hope to add support for Unity 2019.4.15f1c1 1 2021-03-01 2022-07-16
ssh rsa key not accepted 4 2022-01-04 2022-08-28
Process kills itself without error message. 6 2021-03-13 2022-09-23
crash on [JPVideoPlayerCacheFile cachedRangeContainsPosition:] 2 2020-03-06 2022-09-16
Could you compile this for windows???? 1 2022-03-26 2022-04-06
Issues building on MacOS 4 2021-01-25 2022-07-29
Support Gradle 7 19 2021-04-13 2022-01-22
Gradle assemble throws error when it couldn't find .git directory 3 2021-04-13 2022-09-08
Support JDK 16 15 2021-04-07 2022-01-12
No such property: out for class: com.gorylenko.writer.NormalizeEOLOutputStream 3 2021-04-20 2022-09-25
Implement Datadog support for collecting and filtering logs from VMs and containers 2 2021-10-21 2022-09-20
Visual issue 1 2021-01-22 2022-01-10
Track new primary keys in table 1 2022-09-16 2022-09-20
Backend : Webhook description update is not working 0 2022-09-19 2022-09-20
Allow overriding service connection config when ingesting from CLI 0 2022-09-18 2022-09-20
Huawei firewall automatically updates the configuration every 4 hours 0 2022-02-27 2022-07-23
[BUG] : <ffmpeg is reported not in path when it is, music wont download, MacOS Monterey> 0 2021-11-09 2022-09-17
Upgrade base image to Debian 11 7 2021-12-05 2022-09-10
Method coders become inconsistent 0 2022-08-31 2022-09-28
Running Remote examples in Coder doesn't handle failed tasks 0 2022-09-01 2022-09-28
Add LBRY/Odysee redirects 1 2021-09-04 2022-06-17
Unable to pass default value using $t() 6 2021-08-25 2022-09-27
Try removing the extra positional arguments. super.addToScene(builder, layerOffset);[BUG] 0 2022-03-07 2022-08-27
Decide on an approach to gulp-free task scripting 2 2022-08-16 2022-09-18
GQLInterface annotation ignored when no queries return the interface directly 10 2021-10-19 2022-03-05
1.8.9 & LC(LunarClient) crash 3 2021-11-11 2022-09-20
Exception "You must freeze() a MutableObjectType before fetching its fields" gets thrown 10 2020-10-22 2022-09-20
Admin console does not shows up with glassfish7 M1 & M2 release 3 2022-03-09 2022-09-06
Unnecessary heating before cut 0 2022-05-06 2022-08-22
consider new github check API 0 2022-05-11 2022-09-14
NPM Script Missing in package.json - 'npm run stop' 4 2018-11-11 2022-08-21
Issue with MSCRM Export Configuration Migration Data task 1 2019-10-26 2022-09-20
[Support]: Upgrade core to core-2021.12.1 shows problem can't reboot HA server 6 2021-12-13 2022-09-21
syscall: TestRlimit fails on arm7hl Linux in 1.18rc1 8 2022-03-04 2022-09-22
Should the Tests / Ubuntu (pull_request) not be required on 3.8/3.9 branches? 3 2020-10-29 2022-09-08
(rosetta) Java codegen issues 8 2021-09-13 2022-09-18
About license 1 2016-01-27 2021-11-27
Single-project MSIX Packaging apps do not load external ResourceDictionaries when using Debug configuration 2 2021-09-01 2022-09-11
Tasmota integration should not add new devices automatically 4 2021-12-11 2022-09-05
Laravel 8: laravel-csp package installation error 0 2022-06-07 2022-07-05
no baby maker integration 0 2022-08-05 2022-08-05
[PowerRename] Add the feature to rename the file name to a hash 4 2021-10-31 2022-09-17
Terminal Shell Integration Error -- bash: eval: line 5: unexpected token `EOF' in conditional command 0 2022-08-05 2022-08-05
Crosshairs get stuck when Task Manager is active. 3 2022-02-08 2022-09-13
Attempt to reload Bio/EnsEMBL/IO/Parser.pm aborted. Compilation failed in require at /usr/share/perl5/vendor_perl/parent.pm line 20. 0 2022-05-05 2022-09-19
Cannot create Analyzer classes in Visual Studio 2019 RC 3 7 2019-03-20 2022-08-06
PlatformException(sign_in_failed, com.google.android.gms.common.api.ApiException: 10: , null, null) 0 2022-08-24 2022-08-24