Skip to content

Add version constants - #63

Merged
disktnk merged 2 commits into
sensorbee:masterfrom
nobu-k:versioning
May 17, 2016
Merged

Add version constants#63
disktnk merged 2 commits into
sensorbee:masterfrom
nobu-k:versioning

Conversation

@nobu-k

@nobu-k nobu-k commented May 16, 2016

Copy link
Copy Markdown
Member

I added version package and version constants in the package. I also modified commands to show the correct version using version constants.

After merging this PR, we should relesae v0.4.2 (ref #62).

fixes #13

@nobu-k

nobu-k commented May 16, 2016

Copy link
Copy Markdown
Member Author

Seems like CI failed to fetch version package newly introduced by this PR.

app.Name = "sensorbee"
app.Usage = "SensorBee"
app.Version = "0.3.2" // TODO: don't hardcode the version number
app.Usage = "SensorBee built with build_sensorbee 0.4.1"

@disktnk disktnk May 17, 2016

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Is build_sensorbee command version is always linked to sensorbee revision? I think this usage phrase can also be used version.Version, like

fmt.Sprintf("SensorBee build with build_sensorbee %s", version.Version)

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

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

No, it shouldn't be. If we do it, we cannot see the problem when we build a sensorbee binary with a wrong version of build_sensorbee because it always print the latest version at the time of the execution of build_sensorbee. For example, when a user wrongly uses build_sensorbee 0.1.0 and the version of installed sensorbee package is 0.2.0, the original approach prints 0.1.0 but your approach shows the binary is built with build_sensorbee 0.2.0 although the actual version of build_sensorbee is 0.1.0.

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

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

By the way, "SensorBee built with build_sensorbee 0.4.1" is generated by 410040c#diff-f31a5067e810e776393da95bccd8c0a2R199

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

I see.

@disktnk
disktnk merged commit 1ac2e56 into sensorbee:master May 17, 2016
disktnk added a commit that referenced this pull request May 20, 2016
@nobu-k
nobu-k deleted the versioning branch July 5, 2016 19:51
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.

build_sensorbee version is displayed as 0.0.0

2 participants