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

Install gosec from vendor and pin to 1.3.0 #1502

Merged
merged 1 commit into from Apr 26, 2019

Conversation

yurishkuro
Copy link
Member

Resolves #1501

Signed-off-by: Yuri Shkuro <ys@uber.com>
@@ -124,15 +129,12 @@ required = [
unused-packages = true
[[prune.project]]
name = "github.com/gogo/protobuf"
non-go = false
Copy link
Member Author

Choose a reason for hiding this comment

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

these were causing dep warnings as redundant

"github.com/golang/protobuf/protoc-gen-go",
"github.com/gogo/protobuf/protoc-gen-gogo",
"github.com/grpc-ecosystem/grpc-gateway/protoc-gen-grpc-gateway",
"github.com/grpc-ecosystem/grpc-gateway/protoc-gen-swagger"
]

[[constraint]]
name = "github.com/securego/gosec"
version = "1.3.0"
Copy link
Collaborator

Choose a reason for hiding this comment

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

dep will consider this as "^1.3.0" by default. To pin, use "=1.3.0"

Copy link
Member Author

Choose a reason for hiding this comment

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

I think it's fine to upgrade when they do new releases, the issue is that today we were pulling master every time. Hopefully numbered releases will be more stable.

Copy link
Collaborator

Choose a reason for hiding this comment

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

I also expect that this will be removed by dep the next time someone runs update because its not required by the project directly. I suggest adding this as a required package.
See https://github.com/golang/dep/blob/master/docs/Gopkg.toml.md#required

@codecov
Copy link

codecov bot commented Apr 26, 2019

Codecov Report

Merging #1502 into master will not change coverage.
The diff coverage is n/a.

Impacted file tree graph

@@           Coverage Diff           @@
##           master    #1502   +/-   ##
=======================================
  Coverage   99.81%   99.81%           
=======================================
  Files         181      181           
  Lines        8652     8652           
=======================================
  Hits         8636     8636           
  Misses          8        8           
  Partials        8        8

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update f86da0a...06ac236. Read the comment docs.

@yurishkuro yurishkuro merged commit 76c0164 into jaegertracing:master Apr 26, 2019
@yurishkuro yurishkuro deleted the fix-1501 branch April 26, 2019 18:09
@objectiser
Copy link
Contributor

@yurishkuro We had the same problem in the operator, but seems like gosec master is back to working now. Not sure if you wanted to revert this change?

@yurishkuro
Copy link
Member Author

I'd prefer they just release a new version. Dep will pick it up on the next --update.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

gosec runs out of memory
3 participants