Repository: kubernetes-sigs/kubebuilder (language: go)

Issue:
🐛 go.kubebuilder.io has broken for downloading kubebuilder releases
### What broke? What's expected?

Failed to download kubebuilder releases, including:

```
https://go.kubebuilder.io/dl/2.3.1/linux/amd64
https://go.kubebuilder.io/dl/3.1.0/linux/amd64
```

But `master` is fine:

```
https://go.kubebuilder.io/dl/master/linux/amd64
```

### Reproducing this issue

`curl -L https://go.kubebuilder.io/dl/3.1.0/linux/amd64`

### KubeBuilder (CLI) Version

nil

### PROJECT version

_No response_

### Plugin versions

_No response_

### Other versions

_No response_

### Extra Labels

_No response_


Discussion / hints:
/cc @camilamacedo86 @Adirio 
Experiencing the same with `https://go.kubebuilder.io/dl/2.3.2/linux/amd64` too.
Here's a short-term (or long-term?) fix from the linked PRs: Change the URL you use to
`https://github.com/kubernetes-sigs/kubebuilder/releases/download/v${version}/kubebuilder_${version}_${os}_${arch}.tar.gz`
Experiencing the same with https://go.kubebuilder.io/dl/3.1.0/linux/amd64 too. The proposed short term fix works for version 2.3.1 but not for 3.1.0. Please advise.
@poadhika it looks like they just removed the version from the filename: https://github.com/kubernetes-sigs/kubebuilder/releases/tag/v3.1.0
cc @rashmigottipati @camilamacedo86 
> @poadhika it looks like they just removed the version from the filename: https://github.com/kubernetes-sigs/kubebuilder/releases/tag/v3.1.0

Yes removing the version solved my issue.
HI folks, 

The assets are available in the release page: https://github.com/kubernetes-sigs/kubebuilder/releases

https://github.com/kubernetes-sigs/kubebuilder/releases/download/v3.1.0/kubebuilder_linux_amd64

And you can curl this links. So, I do not understand why your trying to use:

https://go.kubebuilder.io/dl/2.3.1/linux/amd64
https://go.kubebuilder.io/dl/3.1.0/linux/amd64

Where did you check that links should be used?  
@camilamacedo86 The go.kubebuilder.io links are from the documentation: https://book.kubebuilder.io/quick-start.html#installation
Could you please help us out by pushing a PR for us to update it asap? 
We should use the links in https://github.com/kubernetes-sigs/kubebuilder/releases/ e.g: https://github.com/kubernetes-sigs/kubebuilder/releases/download/v3.1.0/kubebuilder_linux_amd64 . 

@joelanford @estroz, 

Have you any idea why that worked in the past? Have we any reason for we need to make that link in the doc still working? 
Hi @camilamacedo86 , I've opened. https://github.com/kubernetes-sigs/kubebuilder/pull/2320, although I'm not sure it the change is good, any proposals would be welcome :) 
So https://go.kubebuilder.io/dl is a redirect to https://github.com/kubernetes-sigs/kubebuilder/releases

Here's the path:
https://wheregoes.com/trace/20219211407/
The release artifacts changed. 
For 2.3.1 notice the files have the version number

![image](https://user-images.githubusercontent.com/17137/131529516-3c753df2-d730-4342-860d-46bf2cdbcf18.png)

Starting with the 3.0 alpha release the filenames changed
![image](https://user-images.githubusercontent.com/17137/131529672-cbb4edcd-f881-4f61-9c3e-56fa3a66749f.png)


Fix patch:
diff --git a/netlify.toml b/netlify.toml
index 77ce7354d55..6d42320e1bb 100644
--- a/netlify.toml
+++ b/netlify.toml
@@ -90,7 +90,7 @@
     from = "https://go.kubebuilder.io/releases/:version/:os/:arch"
     # I don't quite know why, but netlify (or at least the dev mode) *insists*
     # on eating every other query parameter, so just use paths instead
-    to = "/.netlify/functions/handle-version/:version/:os/:arch"
+    to = "/.netlify/functions/handle-version/releases/:version/:os/:arch"
     # 200 --> don't redirect to the the function then to whereever it says,
     # just pretend like the function is mounted directly here
     status = 200


Test patch: