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

Add version info to common package and -version flag to CLI #128

Merged
merged 4 commits into from
Dec 4, 2020

Conversation

tjanez
Copy link
Member

@tjanez tjanez commented Dec 3, 2020

No description provided.


// RosettaAPIVersion represents the Rosetta API version with which the
// Oasis Core Rosetta Gateway is guaranteed to be compatible with.
RosettaAPIVersion = "1.4.1"
Copy link
Member Author

@tjanez tjanez Dec 3, 2020

Choose a reason for hiding this comment

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

This shouldn't be hard-coded in the future, see #129.

Copy link
Contributor

Choose a reason for hiding this comment

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

You should also make https://github.com/oasisprotocol/oasis-core-rosetta-gateway/blob/master/services/network.go#L135 use the RosettaAPIVersion specified here :)

Copy link
Member Author

Choose a reason for hiding this comment

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

You should also make https://github.com/oasisprotocol/oasis-core-rosetta-gateway/blob/master/services/network.go#L135 use the RosettaAPIVersion specified here :)

Good catch, fixed.

Copy link
Member

@kostko kostko left a comment

Choose a reason for hiding this comment

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

Cool! Maybe it would be a good idea to also include the Oasis Core version? Well it would actually make more sense to include the client protocol version once oasisprotocol/oasis-core#1861 is done.

main.go Show resolved Hide resolved
@tjanez
Copy link
Member Author

tjanez commented Dec 3, 2020

Maybe it would be a good idea to also include the Oasis Core version? Well it would actually make more sense to include the client protocol version once oasisprotocol/oasis-core#1861 is done.

Agreed with adding the client protocol version once that is implemented in Oasis Core.

I tried adding the Oasis Core version by obtaining its value from the common.version.SoftwareVersion variable, but that will return 0.0-unset since that variable is only set through a linker flag when compiling...

@tjanez tjanez merged commit fe88fd7 into master Dec 4, 2020
@tjanez tjanez deleted the tjanez/add-version-info branch December 4, 2020 12:17
@tjanez
Copy link
Member Author

tjanez commented Dec 9, 2020

Cool! Maybe it would be a good idea to also include the Oasis Core version?

Implemented in #134.

Well it would actually make more sense to include the client protocol version once oasisprotocol/oasis-core#1861 is done.

Filled #135.

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