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

use GOBIN instead of GOPATH/bin #2102

Merged
merged 1 commit into from
Jul 11, 2023

Conversation

kpango
Copy link
Collaborator

@kpango kpango commented Jul 1, 2023

Description:

SSIA

Related Issue:

Versions:

  • Go Version: 1.20.5
  • Docker Version: 20.10.8
  • Kubernetes Version: v1.27.3
  • NGT Version: 2.0.13

Checklist:

Special notes for your reviewer:

@vdaas-ci
Copy link
Collaborator

vdaas-ci commented Jul 1, 2023

[CHATOPS:HELP] ChatOps commands.

  • 🙆‍♀️ /approve - approve
  • 💌 /changelog - replace the PR body by changelog details
  • 🍱 /format - format codes and add licenses
  • /gen-test - generate test codes
  • 🏷️ /label - add labels
  • /rebase - rebase main
  • 🔚 2️⃣ 🔚 /label actions/e2e-deploy - run E2E deploy & integration test

@cloudflare-workers-and-pages
Copy link

cloudflare-workers-and-pages bot commented Jul 1, 2023

Deploying with  Cloudflare Pages  Cloudflare Pages

Latest commit: c6d27df
Status: ✅  Deploy successful!
Preview URL: https://fa132438.vald.pages.dev
Branch Preview URL: https://refactor-makefile-use-gobin.vald.pages.dev

View logs

@vankichi vankichi requested review from a team, kevindiu and datelier and removed request for a team July 4, 2023 04:54
@ykadowak
Copy link
Contributor

ykadowak commented Jul 4, 2023

It should be checked if GOBIN is set at first and if not, fallback to GOPATH/bin?

@kpango
Copy link
Collaborator Author

kpango commented Jul 11, 2023

@ykadowak Indeed, I think it is a good idea to backport to GOPATH/bin when "go env GOBIN" is empty.
However, since GOPATH is also obtained from "go env GOPATH", I think it is a rare case that only "go env GOBIN" is missing in the go environment in the initial Install state.

@kpango kpango force-pushed the refactor/makefile/use-gobin-instead-of-gopath branch 3 times, most recently from 1a47ff1 to 2c709db Compare July 11, 2023 17:14
@codecov
Copy link

codecov bot commented Jul 11, 2023

Codecov Report

Patch coverage has no change and project coverage change: +0.02 🎉

Comparison is base (5a28ee6) 48.63% compared to head (c6d27df) 48.65%.

Additional details and impacted files
@@            Coverage Diff             @@
##             main    #2102      +/-   ##
==========================================
+ Coverage   48.63%   48.65%   +0.02%     
==========================================
  Files         171      171              
  Lines        8994     8994              
==========================================
+ Hits         4374     4376       +2     
+ Misses       4496     4495       -1     
+ Partials      124      123       -1     

see 2 files with indirect coverage changes

☔ View full report in Codecov by Sentry.
📢 Do you have feedback about the report comment? Let us know in this issue.

@github-actions github-actions bot removed the size/M label Jul 11, 2023
vankichi
vankichi previously approved these changes Jul 11, 2023
@kpango kpango force-pushed the refactor/makefile/use-gobin-instead-of-gopath branch from 2c709db to c6d27df Compare July 11, 2023 17:44
@kpango kpango merged commit 21ae981 into main Jul 11, 2023
59 of 75 checks passed
@kpango kpango deleted the refactor/makefile/use-gobin-instead-of-gopath branch July 11, 2023 23:03
@ykadowak
Copy link
Contributor

@ykadowak Indeed, I think it is a good idea to backport to GOPATH/bin when "go env GOBIN" is empty. However, since GOPATH is also obtained from "go env GOPATH", I think it is a rare case that only "go env GOBIN" is missing in the go environment in the initial Install state.

Thanks for adding it.

I checked go env GOBIN is empty in the initial state in both brew install go on Mac and the official devcontainer go image. Probably something has changed.

ykadowak pushed a commit that referenced this pull request Jul 25, 2023
@hlts2 hlts2 mentioned this pull request Sep 13, 2023
ykadowak added a commit that referenced this pull request Nov 30, 2023
ykadowak added a commit that referenced this pull request Nov 30, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants