update go#36546
Conversation
|
The problem with But we can still merge this as this is better than not having a Actual dependency changes should be reverted, we have #36548 up. |
This update does include a "pin" requirement, I have made some changes to make the code compile in another branch but not here. Using If you think your tool can handle it, just do it. Show the code. |
In pin: {
"github.com/foo/bar": "^5.0.0",
}, |
No, it won't work for Go dependency problems. Show your change in this PR |
|
I don't understand what you want. In any case, revert the dependency updates here please. |
I would really suggest you first spend enough time on maintaining Golang's related packages before reinventing your wheel. You just never really handled the complete go.mod upgrade, but just imagine that "it should be like that". You can check the change here: https://github.com/wxiaoguang/gitea/tree/temp-fix-go-dep , in this case, In any case, reinventing a tool which isn't necessary is not a right practice. You can't just say "it looks faster" or "it manage locked packages together" then introduce a untested toy into a production repo, actually Golang go.mod doesn't work that way. This is my final conclusion for this problem. |
#36548 has been merged, it upgraded some packages which don't cause problems. This PR has been rebased on main branch. Now, the remaining/renaming packages, challenge work, if you'd like to try, feel free to. Or maybe I can handle it one week later. |
|
Another feature that |
That's not how go.mod works. |
If you use |
|
I don't understand what you are talking about. You are just guessing and imagining. You have never really maintained the Go packages or dependencies. It’s like someone on the street runs up to you and says, “Scalpels are terrible. I modified a kitchen knife myself—let me use it to perform brain surgery on you.” |
|
If you are not able to make this PR compile with proper dependency management, don't talk with me about this topic. You can learn about how to use |
|
Aren't I think it's bad practice to use |
| update-go: ## update go dependencies | ||
| $(GO) get -u ./... | ||
| $(MAKE) tidy | ||
| $(MAKE) go-licenses |
There was a problem hiding this comment.
Not needed, tidy already updates the license file
|
I can accept the current version with |
You can also make the code compile to show that you really understand how dependency works. |
|
I'm of the opinion that If you want a specific depdency version, specify it directly, no need to add needless indirections to the dependency resolution like |
Just a demo for #36541. Can be closed if no progress.