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

slightly more useful user agent #762

Merged
merged 2 commits into from
Oct 21, 2020
Merged

slightly more useful user agent #762

merged 2 commits into from
Oct 21, 2020

Conversation

willscott
Copy link
Member

No description provided.

@willscott willscott merged commit ead2bc9 into master Oct 21, 2020
@willscott willscott deleted the feat/agent branch October 21, 2020 23:28
if err != nil {
pn = defaultClientExec
}
agent := fmt.Sprintf("drand-client-%s/1.0", path.Base(pn))
Copy link
Contributor

Choose a reason for hiding this comment

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

Shouldn't it use the actual version instead of 1.0 ? (per comment here)

Copy link
Contributor

Choose a reason for hiding this comment

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

Actually, I see the other PR does a full overwrite. But still what does 1.0 mean.

Copy link
Member Author

Choose a reason for hiding this comment

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

there isn't a way to know what version of the drand module has been loaded into another binary at build time. unless we defined a constant in the go source code that we update on each release it's going to be out of date with the drand version.
that's not something the go build system can help us with afaik

Copy link
Member Author

Choose a reason for hiding this comment

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

1.0 here means this is the first version that's using this version string scheme 😆

Copy link
Contributor

Choose a reason for hiding this comment

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

hmm you're right. 👍

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.

None yet

3 participants