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

chore: Address issues identified by linter in src/core/environment.go #291

Merged
merged 6 commits into from
Apr 18, 2023

Conversation

mrajagopal
Copy link
Contributor

@mrajagopal mrajagopal commented Apr 16, 2023

Proposed changes

  • Replace deprecated io/ioutils with os read/write function calls
  • Rename files variable in func ReadDirectory() due to identical name in another library
  • Appropriately handle file close
  • Appropriately handle deferred file close
  • Tested: make clean; make build; make deps; make unit-test

Checklist

Before creating a PR, run through this checklist and mark each as complete.

  • I have read the CONTRIBUTING document
  • I have run make install-tools and have attached any dependency changes to this pull request
  • If applicable, I have added tests that prove my fix is effective or that my feature works
  • If applicable, I have checked that any relevant tests pass after adding my changes
  • If applicable, I have updated any relevant documentation (README.md)
  • If applicable, I have tested my cross-platform changes on Ubuntu 22, Redhat 8, SUSE 15 and FreeBSD 13

* The exec.Command() function was being passed an incorrect argument instead of the actual command to be executed
* commit vendor files updated following a make deps
* Replace deprecated io/ioutils with os read/write function calls
* Rename files variable in func ReadDirectory() due to identical name in another library
* Appropriately handle file close
* Appropriately deferred handle file close
@netlify
Copy link

netlify bot commented Apr 16, 2023

Deploy Preview for agent-public-docs canceled.

Name Link
🔨 Latest commit 4800790
🔍 Latest deploy log https://app.netlify.com/sites/agent-public-docs/deploys/643c83b727a9e5000829e5be

@github-actions github-actions bot added chore Pull requests for routine tasks dependencies labels Apr 16, 2023
@mrajagopal
Copy link
Contributor Author

Running make install-tools yields minor version upgrades to about 10 modules.
Is it expected that one includes these as well eventhough this commit is only addressing linter warnings?

Copy link
Contributor

@Dean-Coakley Dean-Coakley left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM.

No need to include changes from make install-tools in my opinion:
As long as the pre-commit checks are successful it's good to go. I've validated that vendor/ is up to date.

@oliveromahony oliveromahony merged commit 9d46505 into nginx:main Apr 18, 2023
26 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
chore Pull requests for routine tasks dependencies
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants