You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I would fix it myself, but I'm not most familiar with this code (in fact, I'm trying to learn/understand it right now, and this invalid comment made it harder). Removing the comment might work, but maybe it's better to refer to the obj parameter instead? Someone more familiar with this can resolve it easily, I just wanted to point out the invalid comment. (I would've left a comment on CL, but it's so old that it's on Rietveld, not sure anyone would see it.)
The text was updated successfully, but these errors were encountered:
Actually, removing the comment might most appropriate. It has nothing to do with obj. The compiler isn't run in a specific dir anymore (as far as I can tell).
I've familiarized myself more with the history of what happened and this code, and I am now pretty confident that the comment should simply be removed.
It was introduced alongside with a change that added a parameter dir. That parameter was later removed, but the comment remained. So now it refers to a parameter that doesn't exist, which is confusing.
In src/cmd/go/build.go:2176, the comment says:
// The compiler runs in the directory dir.
However, there is no longer a parameter to
gc
calleddir
. I dug git blame, and found that it was removed in:604f375
FWIW, it was added in b03a5f6.
I would fix it myself, but I'm not most familiar with this code (in fact, I'm trying to learn/understand it right now, and this invalid comment made it harder). Removing the comment might work, but maybe it's better to refer to the
obj
parameter instead? Someone more familiar with this can resolve it easily, I just wanted to point out the invalid comment. (I would've left a comment on CL, but it's so old that it's on Rietveld, not sure anyone would see it.)The text was updated successfully, but these errors were encountered: