Skip to content

Conversation

@juliusv
Copy link
Contributor

@juliusv juliusv commented Feb 6, 2018

@jml One more little Prometheus vendoring update. Due to dep behavior that I didn't understand previously (it will only update to tagged releases by default), it didn't update all the way to the version I needed in the last PR. But it's good to continuously keep up with upstream anyway :)

Gopkg.toml Outdated
Copy link
Contributor

Choose a reason for hiding this comment

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

Please, when you add a constraint or override, also add a comment explaining the reason why it is needed and the conditions under which it will be removed (e.g. "when PR 876 is released")

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Makes sense, though now I'm a bit stumped what exactly to write :P I just wanted something newer than the latest tagged Prometheus release in order to include some latest necessary changes, but then I thought it'd be good to update to latest master rather than just strictly the latest necessary commit. As in, it's a good idea for us to track upstream master quite closely for Prometheus anyway and regularly update. Do you think I should use a different kind of constraint, or just put a comment there like "Track upstream master closely, don't constrain to latest tagged release.".

Copy link
Contributor

Choose a reason for hiding this comment

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

That doesn’t sound great over the long term. If we need a specific thing beyond the latest release we should be able to name it, and if it’s just to check compatibility or try out a new feature that could be on a branch (not master).

Maybe if we had releases for Cortex it would be easier to argue that master is always at the bleeding edge.

Copy link
Contributor

Choose a reason for hiding this comment

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

branch = "master" would be a better way to express what you mean, as noted at prometheus/client_golang#375

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Damn, here I was all the time thinking I had put branch = "master" there already. Sorry! Of course that makes more sense. Changed.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

(or do you still think that generally tracking master isn't a good idea and I should rather vendor the latest specifically required commit, with a comment?)

Copy link
Contributor

Choose a reason for hiding this comment

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

I'm fine with tracking master, but I still need you to write down the reason.
There are now 8 constraints in the file and I have no idea why any of them are there or when I can update them.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Added a comment and will keep in mind for future constraints.

@juliusv
Copy link
Contributor Author

juliusv commented Feb 12, 2018

Rebased on latest master, which also had new vendoring changes.

@bboreham bboreham merged commit 2eb1149 into master Feb 22, 2018
@bboreham bboreham deleted the update-vendoring branch February 22, 2018 09:44
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.

3 participants