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

[Bug] Syntax Errors in VPC package #44

Closed
amalmadhu06 opened this issue Apr 19, 2023 · 11 comments
Closed

[Bug] Syntax Errors in VPC package #44

amalmadhu06 opened this issue Apr 19, 2023 · 11 comments
Assignees
Labels
bug Something isn't working

Comments

@amalmadhu06
Copy link
Contributor

Description

Syntax error in the VPC package. Also, naming the package as VPC is causing case insensitive import collision

Screenshots

image

Additional information

No response

@amalmadhu06 amalmadhu06 added the bug Something isn't working label Apr 19, 2023
@amalmadhu06
Copy link
Contributor Author

Hi @gawandepratik022
If you have some time to check this and make the necessary fixes, it would be greatly appreciated. Otherwise, I can try to address the issue.

@amalmadhu06
Copy link
Contributor Author

I'm working on this

@riteshsonawane1372
Copy link
Collaborator

@amalmadhu06 kindly have a look at the code https://replit.com/@riteshsonawane/FirstCyanCodec#getVPC.go

@riteshsonawane1372
Copy link
Collaborator

Have a look at this repo https://github.com/omsonawane1372/awsctl I ran the build and test workflow.
image

@amalmadhu06
Copy link
Contributor Author

Hi @riteshsonawane1372 .
go test ./ will only check files in the current directory. I think we need to use go test ./...
I can see that go build is working.

I have tried to fix the syntax issues from the vpc package. Please see this pull request in my fork : amalmadhu06#1

Unfortunately, ci is again failing. Not sure what's going wrong.

@riteshsonawane1372
Copy link
Collaborator

Hi @riteshsonawane1372 . go test ./ will only check files in the current directory. I think we need to use go test ./... I can see that go build is working.

I have tried to fix the syntax issues from the vpc package. Please see this pull request in my fork : amalmadhu06#1

Unfortunately, ci is again failing. Not sure what's going wrong.

The changes in the PR won't fix the issue. Check this repo https://github.com/omsonawane1372/awsctl
Copy the pkg/VPC/getVPC.go and cmd/vpc to ur repo

@riteshsonawane1372
Copy link
Collaborator

The golangci-lint will cause problems bcoz we have mentioned *&x in some part of the code, So to run this workflow we need to change *&x to x
image

@amalmadhu06
Copy link
Contributor Author

If possible, can you please take up this issue @riteshsonawane1372 ? I'm a bit confused here.

@riteshsonawane1372
Copy link
Collaborator

If possible, can you please take up this issue @riteshsonawane1372 ? I'm a bit confused here.

Just do below changes and if it doesn't work I will work on this issue:

  1. Copy code from pkg/VPC/getVPC.go (repo : https://github.com/omsonawane1372/awsctl) paste it in ur repo.
  2. Copy code from cmd/vpc and paste it.
  3. Build locally and test it, you can run $ make to build binary and run it using ./awsctl get vpc

@riteshsonawane1372
Copy link
Collaborator

@amalmadhu06 I have open a PR ( #51 ) which will solve the worflow related issue.
I ran all the workflows under https://github.com/omsonawane1372/awsctl/ Below is the result.
image

@amalmadhu06
Copy link
Contributor Author

Thankyou @riteshsonawane1372
Really appreciate your efforts ❤️

surajnarwade added a commit that referenced this issue May 31, 2023
Added Instance state and solved #44
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants