{"id":18668865,"url":"https://github.com/ftao1/update-packer-win64","last_synced_at":"2026-04-30T13:32:29.928Z","repository":{"id":243544570,"uuid":"812719074","full_name":"ftao1/update-packer-win64","owner":"ftao1","description":"Script to update packer on Windows","archived":false,"fork":false,"pushed_at":"2024-06-10T08:24:33.000Z","size":4,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-05-18T08:07:32.606Z","etag":null,"topics":["packer","shell","windows","wsl"],"latest_commit_sha":null,"homepage":"","language":"Shell","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/ftao1.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2024-06-09T17:26:44.000Z","updated_at":"2024-07-11T12:10:53.000Z","dependencies_parsed_at":"2025-03-27T11:15:16.542Z","dependency_job_id":null,"html_url":"https://github.com/ftao1/update-packer-win64","commit_stats":null,"previous_names":["ftao1/update-packer-win64"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/ftao1/update-packer-win64","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ftao1%2Fupdate-packer-win64","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ftao1%2Fupdate-packer-win64/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ftao1%2Fupdate-packer-win64/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ftao1%2Fupdate-packer-win64/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/ftao1","download_url":"https://codeload.github.com/ftao1/update-packer-win64/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ftao1%2Fupdate-packer-win64/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":32466333,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-04-30T13:12:12.517Z","status":"ssl_error","status_checked_at":"2026-04-30T13:12:06.837Z","response_time":57,"last_error":"SSL_read: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"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":["packer","shell","windows","wsl"],"created_at":"2024-11-07T08:45:03.944Z","updated_at":"2026-04-30T13:32:29.917Z","avatar_url":"https://github.com/ftao1.png","language":"Shell","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Update HashiCorp Packer on Windows\n\nProduction-ready bash script to securely update Win64 packer in WSL with comprehensive error handling, automatic backups, and integrity verification.\n\n## Features\n\n- **Secure Downloads**: Uses proper SSL certificate verification (no more `--no-check-certificate`)\n- **Input Validation**: Validates version format and sanitizes inputs to prevent injection attacks\n- **Automatic Backups**: Creates timestamped backups before updates with rollback capability\n- **Integrity Verification**: SHA256 checksum verification for all downloads\n- **Retry Logic**: Automatic retry with exponential backoff for network failures\n- **Comprehensive Logging**: Detailed logging with timestamps to `/tmp/packer-update.log`\n- **Atomic Operations**: Uses temporary directories to prevent partial installations\n- **Signal Handling**: Graceful cleanup on interruption (Ctrl+C) with proper terminal color reset\n- **Version Management**: Checks current version and skips if already installed\n- **API Integration**: Uses HashiCorp releases API for version discovery\n\n## Requirements\n\nThe following software must be installed in your WSL environment:\n\n- [WSL](https://learn.microsoft.com/en-us/windows/wsl/install)\n- `curl` - for secure downloads\n- `unzip` - for extracting Packer archives\n- `sha256sum` - for integrity verification\n\n## Usage\n\n    $ ./update-packer-win64.sh \u003cversion\u003e\n    $ ./update-packer-win64.sh --help\n\n## Examples\n\n    # Install specific version\n    $ ./update-packer-win64.sh 1.9.4\n    \n    # Install beta version\n    $ ./update-packer-win64.sh 1.9.4-beta1\n    \n    # Show current and available versions\n    $ ./update-packer-win64.sh\n\n## License\n\nMIT\n\n## Author\n\nThese configurations are maintained by F.Tao.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fftao1%2Fupdate-packer-win64","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fftao1%2Fupdate-packer-win64","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fftao1%2Fupdate-packer-win64/lists"}