When I try to build a gitlab project, for example: https://gitlab.com/paas/item/item-search-microservice.git;Got Not Found;
I try to modify the drone source code. For example: sync code warehouse, create, list, query;404 appears in the route;
I tried to URL-encode the parameters of the build to prevent the route from being found;
And decode after receiving the parameters;
Finally, I was surprised to find that it can be built normally;
var (
namespace = chi.URLParam(r, "owner")
name = chi.URLParam(r, "name")
)
decoded, err := url.QueryUnescape(namespace)
if err != nil {
fmt.Println("decode error:", err)
}
namespace = decoded