-
-
Notifications
You must be signed in to change notification settings - Fork 4k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
How to specify Caddy version when building it from source with plugins #2573
Comments
Yes, see the README for instructions on how to build from source at a specific release, see also the Go module documentation and the discussion in #2560. |
@mholt Thanks, I figured it out now. |
@WhaleHub What was your solution? |
@mholt When I ran I was able to build Caddy from the latest commit with plugins this way without a problem.
|
Thanks. But, we just removed build.go... it is no longer needed. |
@mholt That was a typo. I meant to say "When I ran |
Are the instructions in our readme wrong then? We specifically mention a beta version because Go modules ignores prereleases otherwise. |
@mholt As far as I can tell, the instructions for building Caddy without plugins are correct. It's the instructions for building it with plugins that require an overhaul. If you want, I can type something up to fix them. |
What needs to be changed? They worked for me last night. |
Run Edit: This should be the content of
|
Furthermore, I propose another change.
This is not really true, the module name equals the name of the binary i.e if it is called mycaddy the binary will be called mycaddy |
🤔 Huh, I thought the name of the binary was based on the folder name. |
But yes, a lot of pain will go away after a stable release. It's a chicken-and-egg problem. At this point I'll be tagging 1.0 just hoping it works. 😬 |
Not for me... Can anyone confirm this? |
I followed the instructions from the README today to build Caddy from source with plugins, but when I ran
go build
, Go pulled the source code from the latest release tag (v0.11.5) instead of the most recent pre-release tag (v1.0.0-beta1).Is it possible to specify either a pre-release tag or a specific commit when building Caddy from source with plugins?
@mholt Your input would be appreciated.
The text was updated successfully, but these errors were encountered: