Skip to content

chore: add --build-tags flag to go_lint make target#807

Merged
bryanchriswhite merged 1 commit intomainfrom
chore/make-lint-build-tags
Jun 8, 2023
Merged

chore: add --build-tags flag to go_lint make target#807
bryanchriswhite merged 1 commit intomainfrom
chore/make-lint-build-tags

Conversation

@bryanchriswhite
Copy link
Copy Markdown
Collaborator

@bryanchriswhite bryanchriswhite commented Jun 7, 2023

Description

Add missing --build-tags flag to the go_lint makefile target.

Summary generated by Reviewpad on 07 Jun 23 09:07 UTC

This pull request adds a --build-tags flag to the go_lint make target, allowing developers to run linters for specific build tags. The patch enables the test tag during the linting process.

Issue

N/A

Type of change

Please mark the relevant option(s):

  • New feature, functionality or library
  • Bug fix
  • Code health or cleanup
  • Major breaking change
  • Documentation
  • Other

List of changes

  • Added --build-tags "test" to go_lint makefile target

Testing

  • make develop_test; if any code changes were made
  • make test_e2e on k8s LocalNet; if any code changes were made
  • e2e-devnet-test passes tests on DevNet; if any code was changed
  • Docker Compose LocalNet; if any major functionality was changed or introduced
  • k8s LocalNet; if any infrastructure or configuration changes were made

Required Checklist

  • I have performed a self-review of my own code
  • I have commented my code, particularly in hard-to-understand areas
  • I have added, or updated, godoc format comments on touched members (see: tip.golang.org/doc/comment)
  • I have tested my changes using the available tooling
  • I have updated the corresponding CHANGELOG

If Applicable Checklist

  • I have updated the corresponding README(s); local and/or global
  • I have added tests that prove my fix is effective or that my feature works
  • I have added, or updated, mermaid.js diagrams in the corresponding README(s)
  • I have added, or updated, documentation and mermaid.js diagrams in shared/docs/* if I updated shared/*README(s)

@bryanchriswhite bryanchriswhite added bug Something isn't working - expected behaviour is incorrect code health Nice to have code improvement small Pull request is small labels Jun 7, 2023
@bryanchriswhite bryanchriswhite self-assigned this Jun 7, 2023
@bryanchriswhite bryanchriswhite merged commit 185e0fc into main Jun 8, 2023
bryanchriswhite added a commit that referenced this pull request Jun 8, 2023
…ider

* pokt/main:
  Consensus/readme (#777)
  chore: add `--build-tags` flag to `go_lint` make target (#807)
  [Core] Deploying all-the-protocol-actors (#710)
  Add github wiki tag to devlog8
  Add README for Devlog8 for iteration17 (#805)
bryanchriswhite added a commit that referenced this pull request Jun 8, 2023
## Description

Add missing `--build-tags` flag to the `go_lint` makefile target.

<!-- reviewpad:summarize:start -->
### Summary generated by Reviewpad on 07 Jun 23 09:07 UTC
This pull request adds a `--build-tags` flag to the `go_lint` make
target, allowing developers to run linters for specific build tags. The
patch enables the test tag during the linting process.
<!-- reviewpad:summarize:end -->

## Issue

N/A

## Type of change

Please mark the relevant option(s):

- [ ] New feature, functionality or library
- [x] Bug fix
- [x] Code health or cleanup
- [ ] Major breaking change
- [ ] Documentation
- [ ] Other <!-- add details here if it a different type of change -->

## List of changes

- Added `--build-tags "test"` to `go_lint` makefile target

## Testing

- [ ] `make develop_test`; if any code changes were made
- [ ] `make test_e2e` on [k8s
LocalNet](https://github.com/pokt-network/pocket/blob/main/build/localnet/README.md);
if any code changes were made
- [ ] `e2e-devnet-test` passes tests on
[DevNet](https://pocketnetwork.notion.site/How-to-DevNet-ff1598f27efe44c09f34e2aa0051f0dd);
if any code was changed
- [ ] [Docker Compose
LocalNet](https://github.com/pokt-network/pocket/blob/main/docs/development/README.md);
if any major functionality was changed or introduced
- [ ] [k8s
LocalNet](https://github.com/pokt-network/pocket/blob/main/build/localnet/README.md);
if any infrastructure or configuration changes were made

## Required Checklist

- [ ] I have performed a self-review of my own code
- [ ] I have commented my code, particularly in hard-to-understand areas
- [ ] I have added, or updated, [`godoc` format
comments](https://go.dev/blog/godoc) on touched members (see:
[tip.golang.org/doc/comment](https://tip.golang.org/doc/comment))
- [ ] I have tested my changes using the available tooling
- [ ] I have updated the corresponding CHANGELOG

### If Applicable Checklist

- [ ] I have updated the corresponding README(s); local and/or global
- [ ] I have added tests that prove my fix is effective or that my
feature works
- [ ] I have added, or updated,
[mermaid.js](https://mermaid-js.github.io) diagrams in the corresponding
README(s)
- [ ] I have added, or updated, documentation and
[mermaid.js](https://mermaid-js.github.io) diagrams in `shared/docs/*`
if I updated `shared/*`README(s)
bryanchriswhite added a commit that referenced this pull request Jun 8, 2023
…ider

* pokt/main:
  Consensus/readme (#777)
  chore: add `--build-tags` flag to `go_lint` make target (#807)
  [Core] Deploying all-the-protocol-actors (#710)
  Add github wiki tag to devlog8
  Add README for Devlog8 for iteration17 (#805)
bryanchriswhite added a commit that referenced this pull request Jun 8, 2023
…ider

* pokt/main:
  Consensus/readme (#777)
  chore: add `--build-tags` flag to `go_lint` make target (#807)
  [Core] Deploying all-the-protocol-actors (#710)
  Add github wiki tag to devlog8
  Add README for Devlog8 for iteration17 (#805)
bryanchriswhite added a commit that referenced this pull request Jun 8, 2023
* pokt/main:
  Consensus/readme (#777)
  chore: add `--build-tags` flag to `go_lint` make target (#807)
  [Core] Deploying all-the-protocol-actors (#710)
  Add github wiki tag to devlog8
  Add README for Devlog8 for iteration17 (#805)
bryanchriswhite added a commit that referenced this pull request Jun 8, 2023
* pokt/main:
  Consensus/readme (#777)
  chore: add `--build-tags` flag to `go_lint` make target (#807)
  [Core] Deploying all-the-protocol-actors (#710)
  Add github wiki tag to devlog8
  Add README for Devlog8 for iteration17 (#805)
bryanchriswhite added a commit that referenced this pull request Jun 8, 2023
* pokt/main:
  Consensus/readme (#777)
  chore: add `--build-tags` flag to `go_lint` make target (#807)
  [Core] Deploying all-the-protocol-actors (#710)
  Add github wiki tag to devlog8
  Add README for Devlog8 for iteration17 (#805)
bryanchriswhite added a commit that referenced this pull request Jun 8, 2023
* pokt/main:
  Consensus/readme (#777)
  chore: add `--build-tags` flag to `go_lint` make target (#807)
  [Core] Deploying all-the-protocol-actors (#710)
  Add github wiki tag to devlog8
  Add README for Devlog8 for iteration17 (#805)
bryanchriswhite added a commit that referenced this pull request Jun 8, 2023
* refactor/peerstore-provider: (22 commits)
  fix: bugs
  chore: update changelogs
  refactor: rename `T` & `K` type params to `M` &`C`
  chore: improve comment
  chore: add issue numbers to TECHDEBT comments
  chore: add TECHDEBT comments
  refactor: re-implement `GetUnstakedPeerstore`
  refactor: update peerstore provider method receivers
  refactor: `p2pPeerstoreProvider` to a single function'
  refactor: rename persistence.go back to provider.go
  refactor: consolidate p2pPeerstoreProvider into persistencePeerstorProvider
  chore: oneline function signature
  refactor: embed `p2pPStoreProviderFactory`
  refactor: persistence peerstor provider
  Consensus/readme (#777)
  chore: add `--build-tags` flag to `go_lint` make target (#807)
  [Core] Deploying all-the-protocol-actors (#710)
  fix: retrieve p2p mdoule from bus on each call
  chore: add godoc comments
  chore: remove unused `GetP2PConfig()` method
  ...
@Olshansk Olshansk deleted the chore/make-lint-build-tags branch June 8, 2023 17:57
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

bug Something isn't working - expected behaviour is incorrect code health Nice to have code improvement small Pull request is small waiting-for-review

Projects

Status: Done

Development

Successfully merging this pull request may close these issues.

2 participants