Comments (6)
The trick is to decide what version to expose here ... current version command line handling prints out hard-coded text I believe, which is only useful among manjor versions (which we probably could change), however that also creates churn (keep updating the version file).
To avoid churn, we had various requests to use git
versions/info/logs for this however we intentionally avoided this due to slowing down builds (we try hard to not execute extra programs) and making builds potentially less reproducible (different output on the same code, depending on git checkout status/state).
The closest equivalent is defining an argument and allowing build systems to override it (and builds system may choose to take the extra time to figure out a good tag). sl_matter_version_str
is an example of this being done ( it is slow when used, adds extra churn to maintain the version in the builder script).
from connectedhomeip.
@resghst Where is the chip-tool coming from whose version you want to know? Understanding that will make it easier to figure out how best to address this.
from connectedhomeip.
Sometimes, I built the chip-tool a few months ago. I only leave the chip-tool bin file, so I can not easily get the chip-tool version.
For instance, the chip-tool builds from:
- the hash code: b63c271
- the nearest tag: v1.3.0.0
- branch: master
I holp chip-tool version command will show: master-v1.3.0.0-b63c271
at least show the hash code.
Thanks reply, @bzbarsky-apple @andy31415
from connectedhomeip.
I think only project-chip git-hash will fine
from connectedhomeip.
@resghst Build it into a directory whose name is the SHA?
from connectedhomeip.
for example, the following command can control the node 1 endpoint 1.
$ ./chip-tool onoff on 1 1
I want get the chip-tool version with
$ ./chip-tool version
it will return "master-v1.3.0.0-b63c271" or "b63c271"
The chip-tool has many modules, so we may let the version become a command group.
$ ./chip-tool version <module_name>
from connectedhomeip.
Related Issues (20)
- service-area-server.cpp remove check for CurrentArea == NULL when executing skip command
- [BUG] Buffer Overrun Potential in External Attribute Reads
- [BUG] Matter OTA Abnormal in Apple Home
- [CERT-TEST-FAILURE] [ TC-RVCOPSTATE-2.4] - Python Script need to be updated by Replacing RVCOPSTATE.S.C128.Rsp with RVCOPSTATE.S.C80.Rsp(GoHome) PICS HOT 1
- [BUG] CommandHandlerInterface UnregisterAllCommandHandlersForEndpoint deregisters only first CommandHandler
- [Test Failed] DEM_TC_2_6 Device crashes. HOT 2
- [BUG] Python test run does not call failure method from hooks when setup_class fails
- [Test Failed] [TC_DEM_2_7] fails on ESP32 HOT 1
- [Test Failed] [TC_DEM_2.8] Step 5 - Invalidcommand returned instead on ConstraintError
- [BUG] Failed to sync device when using dynamic setupPIN
- [BUG] Example Energy Management app for EVSE etc does not set the absMinPower and adsMaxPower values in DEM
- [BUG] Android Chiptool ANR issue when mDNS discover
- [Build] Unable to build chiptool HOT 2
- [BUG] MatterSupport will not call commissionDevice method when device is removed from ThirdParty ecosystem and then multiadmin again.
- [Test Failed] EWATERHRT1.1: Failure return on reading Feature-Map and Cluster Revision attribute. HOT 1
- mismatched SkipArea handling
- [CERT-TEST-FAILURE] ICDM-3.4 python script doesn't work in practice HOT 3
- Update TC-SEAR-1.3 to introduce the valid areas PIXIT
- [CERT-TEST-FAILURE] [TC-RVCOPSTATE-2.4] - The Python script need be updated as per the Test Plan by adding test step 11 to 13
- Handle subscription for Preset attributes like ActivePresetHandle, etc. that are not writeable and instead set by a command
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from connectedhomeip.