You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@apisix.apache.org by "afzal442 (via GitHub)" <gi...@apache.org> on 2023/04/29 01:37:53 UTC

[GitHub] [apisix-ingress-controller] afzal442 opened a new pull request, #1819: chore: updates latest go mod lib and modifies the ginkgo install instruction

afzal442 opened a new pull request, #1819:
URL: https://github.com/apache/apisix-ingress-controller/pull/1819

   <!-- Please answer these questions before submitting a pull request -->
   There was confusion to use ginkgo installation
   ### Type of change:
   
   <!-- Please delete options that are not relevant. -->
   
   <!-- Select all the options from below that matches the type your PR best -->
   
   - [ ] Bugfix
   - [ ] New feature provided
   - [ ] Improve performance
   - [ ] Backport patches
   - [ ] Documentation
   - [ ] Refactor
   - [ ] Chore
   - [ ] CI/CD or Tests
   
   ### What this PR does / why we need it:
   
   <!--- Why is this change required? What problem does it solve? -->
   <!--- If it fixes an open issue, please link to the issue here. -->
   
   ### Pre-submission checklist:
   
   <!--
   Please follow the requirements:
   1. Use Draft if the PR is not ready to be reviewed
   2. Test is required for the feat/fix PR, unless you have a good reason
   3. Doc is required for the feat PR
   4. Use a new commit to resolve review instead of `push -f`
   5. Use "request review" to notify the reviewer once you have resolved the review
   -->
   
   - [ ] Did you explain what problem does this PR solve? Or what new features have been added?
   - [ ] Have you added corresponding test cases?
   - [ ] Have you modified the corresponding document?
   - [ ] Is this PR backward compatible? **If it is not backward compatible, please discuss on the [mailing list](https://github.com/apache/apisix-ingress-controller#community) first**
   


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: notifications-unsubscribe@apisix.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


[GitHub] [apisix-ingress-controller] afzal442 commented on a diff in pull request #1819: chore: updates latest go mod lib and modifies the ginkgo install instruction

Posted by "afzal442 (via GitHub)" <gi...@apache.org>.
afzal442 commented on code in PR #1819:
URL: https://github.com/apache/apisix-ingress-controller/pull/1819#discussion_r1205143051


##########
Makefile:
##########
@@ -151,6 +151,7 @@ e2e-test-local: kind-up e2e-test
 ginkgo-check:
 ifeq ("$(wildcard $(GINKGO))", "")
 	@echo "ERROR: Need to install ginkgo first, run: go get -u github.com/onsi/ginkgo/v2/ginkgo@v2.9.2 or go install -mod=mod github.com/onsi/ginkgo/v2/ginkgo@v2.9.2"
+	@echo "Then, you need to add $GOPATH/bin to your PATH, run: export PATH="$(go env GOPATH)/bin:$PATH""

Review Comment:
   @tao12345666333 as a gentle reminder, in case you forgot. LMK if it makes sense now. TY



-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: notifications-unsubscribe@apisix.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


[GitHub] [apisix-ingress-controller] afzal442 commented on pull request #1819: chore: updates latest go mod lib and modifies the ginkgo install instruction

Posted by "afzal442 (via GitHub)" <gi...@apache.org>.
afzal442 commented on PR #1819:
URL: https://github.com/apache/apisix-ingress-controller/pull/1819#issuecomment-1528658851

   Hi @tao12345666333 ! while working with `make e2e-test`, there is a little confusion to install the `ginkgo cli` . I added some extra info to address it. Hope that makes sense. 


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: notifications-unsubscribe@apisix.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


[GitHub] [apisix-ingress-controller] afzal442 commented on a diff in pull request #1819: chore: updates latest go mod lib and modifies the ginkgo install instruction

Posted by "afzal442 (via GitHub)" <gi...@apache.org>.
afzal442 commented on code in PR #1819:
URL: https://github.com/apache/apisix-ingress-controller/pull/1819#discussion_r1181007114


##########
Makefile:
##########
@@ -150,7 +150,8 @@ e2e-test-local: kind-up e2e-test
 .PHONY: ginkgo-check
 ginkgo-check:
 ifeq ("$(wildcard $(GINKGO))", "")
-	@echo "ERROR: Need to install ginkgo first, run: go get -u github.com/onsi/ginkgo/v2/ginkgo@v2.9.2 or go install -mod=mod github.com/onsi/ginkgo/v2/ginkgo@v2.9.2"
+	@echo "ERROR: Need to install ginkgo first, run: go get -u github.com/onsi/ginkgo/v2/ginkgo@v2.9.2 and go install -mod=mod github.com/onsi/ginkgo/v2/ginkgo@v2.9.2"

Review Comment:
   Yes I found it from here https://go.dev/doc/go-get-install-deprecation



-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: notifications-unsubscribe@apisix.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


[GitHub] [apisix-ingress-controller] afzal442 commented on a diff in pull request #1819: chore: updates latest go mod lib and modifies the ginkgo install instruction

Posted by "afzal442 (via GitHub)" <gi...@apache.org>.
afzal442 commented on code in PR #1819:
URL: https://github.com/apache/apisix-ingress-controller/pull/1819#discussion_r1181001401


##########
Makefile:
##########
@@ -150,7 +150,8 @@ e2e-test-local: kind-up e2e-test
 .PHONY: ginkgo-check
 ginkgo-check:
 ifeq ("$(wildcard $(GINKGO))", "")
-	@echo "ERROR: Need to install ginkgo first, run: go get -u github.com/onsi/ginkgo/v2/ginkgo@v2.9.2 or go install -mod=mod github.com/onsi/ginkgo/v2/ginkgo@v2.9.2"
+	@echo "ERROR: Need to install ginkgo first, run: go get -u github.com/onsi/ginkgo/v2/ginkgo@v2.9.2 and go install -mod=mod github.com/onsi/ginkgo/v2/ginkgo@v2.9.2"

Review Comment:
   > And it can be installed via go install after 1.16
   
   Thanks. Yes it is. I think the confusion was either or. So I have concatenated it with `and`. `go get` just updates your go mod file. Right?



-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: notifications-unsubscribe@apisix.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


[GitHub] [apisix-ingress-controller] tao12345666333 commented on pull request #1819: chore: updates latest go mod lib and modifies the ginkgo install instruction

Posted by "tao12345666333 (via GitHub)" <gi...@apache.org>.
tao12345666333 commented on PR #1819:
URL: https://github.com/apache/apisix-ingress-controller/pull/1819#issuecomment-1539566384

   @afzal442  I don't recommend doing it this way. We can simply export the environment variable instead. I don't want us to directly modify the user's configuration file.


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: notifications-unsubscribe@apisix.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


[GitHub] [apisix-ingress-controller] afzal442 commented on pull request #1819: chore: updates latest go mod lib and modifies the ginkgo install instruction

Posted by "afzal442 (via GitHub)" <gi...@apache.org>.
afzal442 commented on PR #1819:
URL: https://github.com/apache/apisix-ingress-controller/pull/1819#issuecomment-1551322841

   ping @tao12345666333 in case you missed it.


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: notifications-unsubscribe@apisix.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


[GitHub] [apisix-ingress-controller] afzal442 commented on pull request #1819: chore: updates latest go mod lib and modifies the ginkgo install instruction

Posted by "afzal442 (via GitHub)" <gi...@apache.org>.
afzal442 commented on PR #1819:
URL: https://github.com/apache/apisix-ingress-controller/pull/1819#issuecomment-1613570209

   Closing this as no updates.
   cc @tao12345666333 


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: notifications-unsubscribe@apisix.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


[GitHub] [apisix-ingress-controller] tao12345666333 commented on a diff in pull request #1819: chore: updates latest go mod lib and modifies the ginkgo install instruction

Posted by "tao12345666333 (via GitHub)" <gi...@apache.org>.
tao12345666333 commented on code in PR #1819:
URL: https://github.com/apache/apisix-ingress-controller/pull/1819#discussion_r1180995988


##########
Makefile:
##########
@@ -150,7 +150,8 @@ e2e-test-local: kind-up e2e-test
 .PHONY: ginkgo-check
 ginkgo-check:
 ifeq ("$(wildcard $(GINKGO))", "")
-	@echo "ERROR: Need to install ginkgo first, run: go get -u github.com/onsi/ginkgo/v2/ginkgo@v2.9.2 or go install -mod=mod github.com/onsi/ginkgo/v2/ginkgo@v2.9.2"
+	@echo "ERROR: Need to install ginkgo first, run: go get -u github.com/onsi/ginkgo/v2/ginkgo@v2.9.2 and go install -mod=mod github.com/onsi/ginkgo/v2/ginkgo@v2.9.2"

Review Comment:
   The go get installs for versions prior to Go 1.16. 
   
   And it can be installed via go install after 1.16



-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: notifications-unsubscribe@apisix.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


[GitHub] [apisix-ingress-controller] afzal442 commented on pull request #1819: chore: updates latest go mod lib and modifies the ginkgo install instruction

Posted by "afzal442 (via GitHub)" <gi...@apache.org>.
afzal442 commented on PR #1819:
URL: https://github.com/apache/apisix-ingress-controller/pull/1819#issuecomment-1537730531

   Thanks! So I have added to it using like below. Hope it makes sense.
   https://github.com/apache/apisix-ingress-controller/blob/8eccd0f2142a7374dc1eb6bd15752ccc7bc1e438/Makefile#L154


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: notifications-unsubscribe@apisix.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


[GitHub] [apisix-ingress-controller] afzal442 commented on a diff in pull request #1819: chore: updates latest go mod lib and modifies the ginkgo install instruction

Posted by "afzal442 (via GitHub)" <gi...@apache.org>.
afzal442 commented on code in PR #1819:
URL: https://github.com/apache/apisix-ingress-controller/pull/1819#discussion_r1205143051


##########
Makefile:
##########
@@ -151,6 +151,7 @@ e2e-test-local: kind-up e2e-test
 ginkgo-check:
 ifeq ("$(wildcard $(GINKGO))", "")
 	@echo "ERROR: Need to install ginkgo first, run: go get -u github.com/onsi/ginkgo/v2/ginkgo@v2.9.2 or go install -mod=mod github.com/onsi/ginkgo/v2/ginkgo@v2.9.2"
+	@echo "Then, you need to add $GOPATH/bin to your PATH, run: export PATH="$(go env GOPATH)/bin:$PATH""

Review Comment:
   @tao12345666333 as a gentle reminder, in case you forgot this. LMK if it makes sense now. TY



-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: notifications-unsubscribe@apisix.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


[GitHub] [apisix-ingress-controller] afzal442 commented on pull request #1819: chore: updates latest go mod lib and modifies the ginkgo install instruction

Posted by "afzal442 (via GitHub)" <gi...@apache.org>.
afzal442 commented on PR #1819:
URL: https://github.com/apache/apisix-ingress-controller/pull/1819#issuecomment-1539800567

   Ah I see! Thanks for that. So what would you recommend doing instead that? any suggestion or I should revert it. 🍓 


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: notifications-unsubscribe@apisix.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


[GitHub] [apisix-ingress-controller] afzal442 commented on pull request #1819: chore: updates latest go mod lib and modifies the ginkgo install instruction

Posted by "afzal442 (via GitHub)" <gi...@apache.org>.
afzal442 commented on PR #1819:
URL: https://github.com/apache/apisix-ingress-controller/pull/1819#issuecomment-1537724581

   hi @tao12345666333 ! when I try to install ginkgo from `go install -mod=mod github.com/onsi/ginkgo/v2/ginkgo@v2.9.2` and type ginkgo version, it shows `ginkgo not found`. Hence, I have added some extra info to address it. What do you think? Thanks


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: notifications-unsubscribe@apisix.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


[GitHub] [apisix-ingress-controller] afzal442 closed pull request #1819: chore: updates latest go mod lib and modifies the ginkgo install instruction

Posted by "afzal442 (via GitHub)" <gi...@apache.org>.
afzal442 closed pull request #1819: chore: updates latest go mod lib and modifies the ginkgo install instruction
URL: https://github.com/apache/apisix-ingress-controller/pull/1819


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: notifications-unsubscribe@apisix.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


[GitHub] [apisix-ingress-controller] afzalbin64 commented on a diff in pull request #1819: chore: updates latest go mod lib and modifies the ginkgo install instruction

Posted by "afzalbin64 (via GitHub)" <gi...@apache.org>.
afzalbin64 commented on code in PR #1819:
URL: https://github.com/apache/apisix-ingress-controller/pull/1819#discussion_r1218882910


##########
Makefile:
##########
@@ -151,6 +151,7 @@ e2e-test-local: kind-up e2e-test
 ginkgo-check:
 ifeq ("$(wildcard $(GINKGO))", "")
 	@echo "ERROR: Need to install ginkgo first, run: go get -u github.com/onsi/ginkgo/v2/ginkgo@v2.9.2 or go install -mod=mod github.com/onsi/ginkgo/v2/ginkgo@v2.9.2"
+	@echo "Then, you need to add $GOPATH/bin to your PATH, run: export PATH="$(go env GOPATH)/bin:$PATH""

Review Comment:
   Jintao!



-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: notifications-unsubscribe@apisix.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


[GitHub] [apisix-ingress-controller] tao12345666333 commented on pull request #1819: chore: updates latest go mod lib and modifies the ginkgo install instruction

Posted by "tao12345666333 (via GitHub)" <gi...@apache.org>.
tao12345666333 commented on PR #1819:
URL: https://github.com/apache/apisix-ingress-controller/pull/1819#issuecomment-1537726220

   You can add $GOPATH/bin to your $PATH 


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: notifications-unsubscribe@apisix.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


[GitHub] [apisix-ingress-controller] codecov-commenter commented on pull request #1819: chore: updates latest go mod lib and modifies the ginkgo install instruction

Posted by "codecov-commenter (via GitHub)" <gi...@apache.org>.
codecov-commenter commented on PR #1819:
URL: https://github.com/apache/apisix-ingress-controller/pull/1819#issuecomment-1528680329

   ## [Codecov](https://codecov.io/gh/apache/apisix-ingress-controller/pull/1819?src=pr&el=h1&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=The+Apache+Software+Foundation) Report
   > Merging [#1819](https://codecov.io/gh/apache/apisix-ingress-controller/pull/1819?src=pr&el=desc&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=The+Apache+Software+Foundation) (46c1994) into [master](https://codecov.io/gh/apache/apisix-ingress-controller/commit/2182a48cbca785373eca745a13d8cf2b7d9ab6c8?el=desc&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=The+Apache+Software+Foundation) (2182a48) will **not change** coverage.
   > The diff coverage is `n/a`.
   
   > :exclamation: Current head 46c1994 differs from pull request most recent head 9670e35. Consider uploading reports for the commit 9670e35 to get more accurate results
   
   ```diff
   @@           Coverage Diff           @@
   ##           master    #1819   +/-   ##
   =======================================
     Coverage   39.45%   39.45%           
   =======================================
     Files          91       91           
     Lines        8043     8043           
   =======================================
     Hits         3173     3173           
     Misses       4463     4463           
     Partials      407      407           
   ```
   
   
   
   :mega: We’re building smart automated test selection to slash your CI/CD build times. [Learn more](https://about.codecov.io/iterative-testing/?utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=The+Apache+Software+Foundation)
   


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: notifications-unsubscribe@apisix.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org