The issue of the url address

This issue has been created since 2021-10-18.

Hi, recently I've tried to use xcaddy to compile the caddy with cloudflare dns. However some error occured. I just found that the url probably has something wrong. For example, https://github.com/caddyserver/caddy/blob/master/go.mod where the url in the first line cannot be reached correctly. I am not a guy good at coding, so I not sure if what I said is right, would you please help me to have a look? Thanks.

francislavoie wrote this answer on 2021-10-18

However some error occured.

What did you run? What's the error? We can't do much if you don't actually provide us with what went wrong.

lianfengyeo wrote this answer on 2021-10-18

Hi francislavoie, thanks for your replay. I tried to compile caddy with cloudflare dns, and some errors showed as below. Would you please help me to have a look? thank you.

Here I found that there is link 'github.com/caddyserver/caddy/v2' in the error message, however I cannot locate or open this link in my browser. I'm not sure if this is the problem.

2021/10/18 23:31:21 [INFO] Temporary folder: /tmp/buildenv_2021-10-18-2331.858408540
2021/10/18 23:31:21 [INFO] Writing main module: /tmp/buildenv_2021-10-18-2331.858408540/main.go
2021/10/18 23:31:21 [INFO] Initializing Go module
2021/10/18 23:31:21 [INFO] exec (timeout=10s): /usr/bin/go mod init caddy
go: creating new go.mod: module caddy
2021/10/18 23:31:21 [INFO] Pinning versions
2021/10/18 23:31:21 [INFO] exec (timeout=0s): /usr/bin/go get -d -v github.com/caddyserver/caddy/v2
2021/10/18 23:31:22 [INFO] exec (timeout=0s): /usr/bin/go get -d -v github.com/caddy-dns/cloudflare
go: finding github.com/caddy-dns/cloudflare latest
2021/10/18 23:31:23 [INFO] Build environment ready
2021/10/18 23:31:23 [INFO] Building Caddy
2021/10/18 23:31:23 [INFO] exec (timeout=0s): /usr/bin/go mod tidy
2021/10/18 23:31:24 [INFO] exec (timeout=0s): /usr/bin/go build -o /home/heu/Downloads/caddy -ldflags -w -s -trimpath
flag provided but not defined: -trimpath
usage: go build [-o output] [-i] [build flags] [packages]
Run 'go help build' for details.
2021/10/18 23:31:24 [INFO] Cleaning up temporary folder: /tmp/buildenv_2021-10-18-2331.858408540
2021/10/18 23:31:24 [FATAL] exit status 2

mholt wrote this answer on 2021-10-18

Thanks for opening an issue! We'll look into this.

It's not immediately clear to me what is going on, so I'll need your help to understand it better.

Ideally, we need to be able to reproduce the bug in the most minimal way possible. This allows us to write regression tests to verify the fix is working. If we can't reproduce it, then you'll have to test our changes for us until it's fixed -- and then we can't add test cases, either.

I've attached a template below that will help make this easier and faster! This will require some effort on your part -- please understand that we will be dedicating time to fix the bug you are reporting if you can just help us understand it and reproduce it easily.

This template will ask for some information you've already provided; that's OK, just fill it out the best you can. 👍 I've also included some helpful tips below the template. Feel free to let me know if you have any questions!

Thank you again for your report, we look forward to resolving it!

Template

## 1. Environment

### 1a. Operating system and version

```
paste here
```


### 1b. Caddy version (run `caddy version` or paste commit SHA)

```
paste here
```


### 1c. Go version (if building Caddy from source; run `go version`)

```
paste here
```


## 2. Description

### 2a. What happens (briefly explain what is wrong)




### 2b. Why it's a bug (if it's not obvious)




### 2c. Log output

```
paste terminal output or logs here
```



### 2d. Workaround(s)




### 2e. Relevant links




## 3. Tutorial (minimal steps to reproduce the bug)




Instructions -- please heed otherwise we cannot help you (help us help you!)

  1. Environment: Please fill out your OS and Caddy versions, even if you don't think they are relevant. (They are always relevant.) If you built Caddy from source, provide the commit SHA and specify your exact Go version.

  2. Description: Describe at a high level what the bug is. What happens? Why is it a bug? Not all bugs are obvious, so convince readers that it's actually a bug.

    • 2c) Log output: Paste terminal output and/or complete logs in a code block. DO NOT REDACT INFORMATION except for credentials.
    • 2d) Workaround: What are you doing to work around the problem in the meantime? This can help others who encounter the same problem, until we implement a fix.
    • 2e) Relevant links: Please link to any related issues, pull requests, docs, and/or discussion. This can add crucial context to your report.
  3. Tutorial: What are the minimum required specific steps someone needs to take in order to experience the same bug? Your goal here is to make sure that anyone else can have the same experience with the bug as you do. You are writing a tutorial, so make sure to carry it out yourself before posting it. Please:

    • Start with an empty config. Add only the lines/parameters that are absolutely required to reproduce the bug.
    • Do not run Caddy inside containers.
    • Run Caddy manually in your terminal; do not use systemd or other init systems.
    • If making HTTP requests, avoid web browsers. Use a simpler HTTP client instead, like curl.
    • Do not redact any information from your config (except credentials). Domain names are public knowledge and often necessary for quick resolution of an issue!
    • Note that ignoring this advice may result in delays, or even in your issue being closed. 😞 Only actionable issues are kept open, and if there is not enough information or clarity to reproduce the bug, then the report is not actionable.

Example of a tutorial:

Create a config file:
{ ... }

Open terminal and run Caddy:

$ caddy ...

Make an HTTP request:

$ curl ...

Notice that the result is ___ but it should be ___.

mholt wrote this answer on 2022-02-19

Closing due to inactivity

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
Shape copy/paste doesn't preserve colors 1 2022-01-02 2022-07-28
Tests for SVG renderer 0 2021-12-23 2022-05-16
add "undo remove bookmark" 0 2017-08-10 2022-09-28
Add an option to persist the last-selected choice for the Home Feed sort 2 2022-03-12 2022-09-02
Hide search engine - option 0 2022-02-22 2022-09-02
TypeError: Cannot read property '0' of undefined 3 2022-02-14 2022-09-28
Output as json, for further consumption by other tools 0 2022-01-21 2022-05-21
Output for images folder 2 2021-10-26 2022-09-22
`typing.Literal`, `nextcord.Range` and `typing.Union` for choices + ranges + channel types 11 2022-04-09 2022-09-28
ENH add early_termination control for boosting-based methods 2 2021-11-25 2022-08-20
[style] [format] Add clang-format and clang-tidy to the project 1 2020-12-08 2022-07-14
Modularize 6 2020-05-26 2022-01-02
Column value outside range 6 2021-08-16 2022-09-21
Error: Failed to download module. 1 2021-02-18 2022-09-23
How to set column width match the screen width? 5 2018-12-25 2022-09-17
RC 10 breaks with vuetify and "ssr:false" 0 2022-09-08 2022-09-14
API route types not correctly inferred when using query params in $fetch 0 2022-09-08 2022-09-14
clean-ns and other refactor commands not working (windows) 8 2021-10-19 2022-08-05
Unable to use decorators in repl 1 2022-09-17 2022-09-17
Custom recipes cannot require >99,999 mana 0 2021-06-21 2022-09-10
Outdated Chocolatey release 4 2021-10-21 2022-09-02
backend error: GotNotify: Version mismatch! frontend="1.20.4" backend="1.20.2" 3 2022-02-13 2022-07-29
app crash when initializing realm on iOS 2 2022-02-02 2022-08-31
Gatsby Cloud builds frequently timing out 11 2022-02-16 2022-08-31
Environments Are Not Exported/Imported 2 2021-04-28 2022-09-28
Hidden Files on network drives have strange behavior 4 2022-01-17 2022-08-02
SyncPeriod does not work if controller is created WithEventFilter(predicate.GenerationChangedPredicate{}) 0 2022-08-29 2022-09-22
updatePhraseSet Endpoint Utilization 4 2022-03-23 2022-09-02
Contributions for AWS? 1 2022-02-20 2022-09-12
Long lived bidirectional stream closed after laptop goes to sleep 3 2021-10-19 2022-09-26
Fix description in Implementing Event Sourced Entities in Java and JavaScript 1 2021-07-08 2022-09-14
Ideas improvement for `sew.knit_embed_url ` 0 2021-05-12 2022-08-10
cmd/go: "go install" ignores vendor folder 8 2021-09-11 2022-09-15
Add perlayer multigpu test 0 2021-11-24 2022-08-18
Changing the weight of Nimbus Mono freezes FontForge 5 2022-06-05 2022-09-19
We could not load resource configuration. Refresh page to try again 31 2021-04-06 2022-09-08
remove extra text from error 4 2021-03-16 2022-09-22
Prompt user to install a clipboard provider if one is not detected 3 2022-07-30 2022-09-28
add ability to set API call timeout in opengrok-sync configuration 0 2022-04-04 2022-09-28
Handling "payload too large" because of huge INSERT SQLs created by activerecord-import 6 2021-11-02 2022-09-09
Programmes are not running properly 4 2022-01-01 2022-08-10
Add or remove file from solution takes long time 2 2022-05-25 2022-09-17
Tracking: V2 setup-java 8 2020-08-24 2022-09-18
"Manage all aliases" button not visible in the add-on menu when German language is selected 1 2021-10-26 2022-01-23
Mock data input plugin 5 2021-09-13 2022-09-18
While using ant-design menu findMode is deprecated in StrictMode 1 2021-10-04 2022-09-29
Pod Disruption Budget round off of maxUnavailable 3 2020-09-23 2022-09-27
R2dbcEntityTemplate.insert(…) doesn't propagate error signals after data signal 8 2021-03-09 2022-09-20
server not support postgresql 1 2021-12-30 2022-09-25
ClipRectLayer uses clip rect for saveLayer bounds 1 2022-04-21 2022-09-11