{"id":23408595,"url":"https://github.com/OpenCHAMI/power-control","last_synced_at":"2025-10-29T22:30:47.815Z","repository":{"id":269060951,"uuid":"906252142","full_name":"OpenCHAMI/power-control","owner":"OpenCHAMI","description":null,"archived":false,"fork":false,"pushed_at":"2025-02-07T21:36:06.000Z","size":19776,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":8,"default_branch":"main","last_synced_at":"2025-02-14T19:52:03.821Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Go","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/OpenCHAMI.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":".github/CODEOWNERS","security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2024-12-20T13:38:51.000Z","updated_at":"2025-02-07T21:32:09.000Z","dependencies_parsed_at":"2025-01-22T17:41:09.652Z","dependency_job_id":null,"html_url":"https://github.com/OpenCHAMI/power-control","commit_stats":null,"previous_names":["cjh1/power-control","openchami/power-control"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/OpenCHAMI%2Fpower-control","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/OpenCHAMI%2Fpower-control/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/OpenCHAMI%2Fpower-control/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/OpenCHAMI%2Fpower-control/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/OpenCHAMI","download_url":"https://codeload.github.com/OpenCHAMI/power-control/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":238902623,"owners_count":19549776,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2024-12-22T15:16:15.502Z","updated_at":"2025-10-29T22:30:47.446Z","avatar_url":"https://github.com/OpenCHAMI.png","language":"Go","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Power Control Service(pcs)\n\nThis is a fork of the original PCS code from [Cray-HPE/hms-power-control](https://github.com/Cray-HPE/hms-power-control), suitable only for experimentation and demo purposes at this point.\n\n## Build/Install with goreleaser\n\nThis project uses [GoReleaser](https://goreleaser.com/) to automate releases and include additional build metadata such as commit info, build time, and versioning. Below is a guide on how to set up and build the project locally using GoReleaser.\n\n### Environment Variables\n\nTo include detailed build metadata, ensure the following environment variables are set:\n\n* __GIT_STATE__: Indicates whether there are uncommitted changes in the working directory. Set to clean if the repository is clean, or dirty if there are uncommitted changes.\n* __BUILD_HOST__: The hostname of the machine where the build is being performed.\n* __GO_VERSION__: The version of Go used for the build. GoReleaser uses this to ensure consistent Go versioning information.\n* __BUILD_USER__: The username of the person or system performing the build.\n\nSet all the environment variables with:\n```bash\nexport GIT_STATE=$(if git diff-index --quiet HEAD --; then echo 'clean'; else echo 'dirty'; fi)\nexport BUILD_HOST=$(hostname)\nexport GO_VERSION=$(go version | awk '{print $3}')\nexport BUILD_USER=$(whoami)\n```\n\n### Building Locally with GoReleaser\n\nOnce the environment variables are set, you can build the project locally using GoReleaser in snapshot mode (to avoid publishing).\n\n\nFollow the installation instructions from [GoReleaser’s documentation](https://goreleaser.com/install/).\n\n1. Run GoReleaser in snapshot mode with the --snapshot flag to create a local build without attempting to release it:\n  ```bash\n  goreleaser release --snapshot --clean\n  ```\n2.\tCheck the dist/ directory for the built binaries, which will include the metadata from the environment variables. You can inspect the binary output to confirm that the metadata was correctly embedded.\n\n__NOTE__ If you see errors, ensure that you are using the same version of goreleaser that is being used in the [Release Action](.github/workflows/Release.yml)","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2FOpenCHAMI%2Fpower-control","html_url":"https://awesome.ecosyste.ms/projects/github.com%2FOpenCHAMI%2Fpower-control","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2FOpenCHAMI%2Fpower-control/lists"}