Question-and-Answer Resource for the Building Energy Modeling Community
Get started with the Help page
Ask Your Question

OpenStudio standards fetch latest git commit

asked 2020-12-07 15:50:35 -0600

antonszilasi gravatar image

updated 2020-12-07 15:51:50 -0600

I am running OpenStudio-standards on the OS-server and I am always pulling the latest version of OpenStudio-standards from master branch through an initialization script.

I am able to use the following code to document which version of OpenStudio standards is being used.


However this doesnt tell the entire story as the version of OpenStudio-standards may have commits ontop of the latest release. (At the time of writing there are)

I am wondering if there a way I can get the actual commit of the version of openstudio-standards that I am using?

edit retag flag offensive close merge delete


@mdahlhausen do you have any suggestions here?

antonszilasi gravatar image antonszilasi  ( 2020-12-10 14:28:04 -0600 )edit

this is not easily done unless you request a specific commit to download

mdahlhausen gravatar image mdahlhausen  ( 2020-12-10 15:58:36 -0600 )edit

I think we need more information about how you're currently using OpenStudio Standards, i.e. local, remote, container, etc. My first thought is to use the GitHub API to fetch/pull the latest commit from a specific branch.

MatthewSteen gravatar image MatthewSteen  ( 2020-12-10 16:32:44 -0600 )edit

1 Answer

Sort by ยป oldest newest most voted

answered 2020-12-10 16:54:39 -0600

The initialization script is being used to change the gems that the OS CLI uses in OS Server. The gems that are being used can be found at /var/oscli/Gemfile.lock in any of the worker containers (ssh into any of the worker containers).

Note that these gems are different than what the Server uses which show up on the Admin page of the Server UI.

edit flag offensive delete link more

Your Answer

Please start posting anonymously - your entry will be published after you log in or create a new account.

Add Answer

Training Workshops

Question Tools



Asked: 2020-12-07 15:50:35 -0600

Seen: 102 times

Last updated: Dec 10 '20