Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

x/sys: extract Unix includes into separate files #23412

Closed
Androbin opened this issue Jan 11, 2018 · 10 comments
Closed

x/sys: extract Unix includes into separate files #23412

Androbin opened this issue Jan 11, 2018 · 10 comments
Labels
FrozenDueToAge NeedsDecision Feedback is required from experts, contributors, and/or the community before a change can be made.
Milestone

Comments

@Androbin
Copy link

I have already submitted a PR for this on the GitHub mirror:
golang/sys#6

Unfortunately, I was unable to re-submit it via Gerrit.
Maybe someone else bothers to make the changes?

@ALTree ALTree changed the title Extract Unix includes into separate files x/sys: extract Unix includes into separate files Jan 11, 2018
@gopherbot gopherbot added this to the Unreleased milestone Jan 11, 2018
@ALTree
Copy link
Member

ALTree commented Jan 11, 2018

Was this proposed change discussed anywhere? Is there a reference issue? Or you are proposing the change now, here, and it needs discussion?

@Androbin
Copy link
Author

There is no other ticket or discussion associated with the PR changeset.

@ALTree ALTree added the NeedsDecision Feedback is required from experts, contributors, and/or the community before a change can be made. label Jan 11, 2018
@ALTree
Copy link
Member

ALTree commented Jan 11, 2018

cc @ianlancetaylor @bradfitz

@bradfitz
Copy link
Contributor

Sorry, we can't look at patches that are sent as PRs, without CLAs on file. Gerrit enforces CLAs.

Please describe the problem in English and we can decide whether somebody can fix the problem independently.

Or submit it via Gerrit.

Or wait for us to start accepting GitHub PRs, soonish. (with the Google CLA bot)

@Androbin
Copy link
Author

Androbin commented Jan 11, 2018

@bradfitz I have signed the CLA a while ago (via the Google CLA bot) and Gerrit lists it under "Agreements".

@ianlancetaylor
Copy link
Contributor

@Androbin What is the problem? Please tell us the problem first, then the solution. Thanks.

@Androbin
Copy link
Author

Androbin commented Jan 11, 2018

The script unix/mkerrors.sh contains both

  • inlined C code, mostly - but not limited to - includes
  • Shell code, generating Go code

I have extracted the former into separate files.
The refactoring is supposed to separate concerns.
This also makes both of these easier to change.

@ianlancetaylor I have described this in the firstmost comment of the PR.

@tklauser
Copy link
Member

tklauser commented Jan 12, 2018

The script unix/mkerrors.sh contains both

  • inlined C code, mostly - but not limited to - includes
  • Shell code, generating Go code

I don't quite see a problem with that. FWIW I find it convenient to have the C code inlined in mkerrors.sh as the changes usually consist of adding a header and adjusting the regex in the same file. Splitting them out would mean having to remember to edit one (or even several) more files for each added/changed constant.

@rsc
Copy link
Contributor

rsc commented Mar 26, 2018

This doesn't seem to be solving a real problem. Why do you want to do this?

@Androbin
Copy link
Author

As I said, I thought it would be more convenient to have them separated.
Since this doesn't seem to be the case here, I'm abandoning this suggestion.

@golang golang locked and limited conversation to collaborators Mar 26, 2019
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
FrozenDueToAge NeedsDecision Feedback is required from experts, contributors, and/or the community before a change can be made.
Projects
None yet
Development

No branches or pull requests

7 participants