-
Notifications
You must be signed in to change notification settings - Fork 706
Conversation
Please provide concrete reasons why it is necessary. As such, there is no cause for a |
|
The linked to PR, and the transitively linked to Issue all already link to that resource. Note my comment:
A decision has already been made with the given reasons. None of them suggest “necessity”. You state no new reasons. 🤷♀️ I do not understand why you would expect a different response. |
Thank you but no
Every file has a cost to maintain. For example, even tho this file is conceptually empty it contains the line "go1.12". Do we have to update that in a year when Go 1.12 is no longer supported? Not having one lowers that cost.
How? Is there something is broken in the Go module system because this file is not present? That page is a gestalt of community contributions, mostly well meaning, but non normative.
Why do I have to repeat what the code says already? Having to repeat this information in two places is a recipe for them getting out of date. |
If this library drops the support for go 1.12, you don't have to alter this line. The line is just there for future go versions.
It helps the eco system by showing that this library declared a go modules and is using the concept of go modules.
But in the end it's the common knowledge and agrement of the community, which might be more valuable the rules from the go team.
Because reading to all go files to find out if the codebase has dependencies is a cumbersome task. Please note that Another reason is that with library doesn't work outside of Also it declares a module name which might become independed of actual URL of the repo. |
False. This line breaks building on 1.11.x where x < 4: golang/go#30446 The reason the
Automated file churn is still unnecessary churn for such a simple package.
This is false. The package works just fine outside of
There is no reason why this package would ever need to use any method of reference other than the simple URL of the repo. Why make things more complicated, when a simple adequate solution exists? |
This is a bug, that was fixed in go But I've removed the line. Now it also compatible with all go
There has been a couple of times where Repos changed there URL. Who knows how long GH will exists? Module names make a repo independent from the URL. |
If this package moves to a different GitHub repo then it is not the same package. This property is at the heart of SIV — things with different names are different.
… On 8 Aug 2019, at 00:00, Hanzei ***@***.***> wrote:
False. This line breaks building on 1.11.x where x < 4: golang/go#30446 The reason the travis-ci passes for 1.11 is because it’s skipping go mod support due to being built in the GOPATH within travis.
This is a bug, that was fixed in go 1.11.4. People using 1.11.x with x < 4 should just update there version.
But I've removed the line. Now it also compatible with all go 1.11 versions.
There is no reason why this package would ever need to use any method of reference other than the simple URL of the repo. Why make things more complicated, when a simple adequate solution exists?
There has been a couple of times where Repos changed there URL. Who knows how long GH will exists? Module names make a repo independent from the URL.
—
You are receiving this because you commented.
Reply to this email directly, view it on GitHub, or mute the thread.
|
Well, this go modules it can stay the same. It's about the modules, not where the module lives. |
The biggest advantage is that it allows developers to work with this package outside of GOPATH. The wiki link that was mentioned before – and rather curiously handwaved away with "this is just a community contribution" – mentioned that already, but to expand in some more detail on this: I typically put my code in
This has the potential to become even more confusing if the While "GOPATH mode" probably won't be removed for a while, I believe that "deprecation" of it is planned (originally 1.13, but not 100% sure what the current timeline is). Not supporting a module-based workflow seems rather strange to me, and the previous claim that "The package works just fine outside of GOPATH" doesn't seem to be the case, at least not on my system with Go 1.13.5. Note: the tests actually fail for me in module mode on my system (it works in GOPATH), so that needs fixing as well, but that's a separate issue. |
I’ve worked in Go since 1.2, and have never programmed in the First: if a package does not have any dependencies, then GOPATH or not, So, why do we get So, after addressing how to deal with the unintended compilation of example code, we come to the real issue that you’ve also pointed out, which is facing us when attempting to run the tests outside of GOPATH: the file paths being reported in the stack trace are not static, and so we end up with a ton of string value mismatches. But if we fix these, then we do not need the And this is where we get to the reason why your argument does not indicate a necessity for a |
It seems to me that running example tests with a standard no-frills Hiding the example tests – which run fine with a go.mod btw – behind a build flag is much more of a burden to everyone working with this than maintaining that file. Frankly I find the vigorous opposition to a simple pragmatic fix here quite baffling 😕 |
We do not actually every compile or use the The exact same amount of issues with putting it behind a build tag, would be the exact same amount of maintenance of a And neither of these actually solve the issue of being able to run the tests outside of |
I was just passing through here and would like to add: adding a |
We do not need a
If you have a pseudo-version, it’s because you have either pinned a specific commit, or you targeted |
Interesting. I was under a false impression then. I suppose this only applies if you have a version of 2 or higher without |
While I understand that adding support for go modules via the |
As I understand it a go.mod file is not required for this project. |
No, it is not. You can include this package just as easily with as without a |
No description provided.