Skip to content

Fixed 1.6.2 hash for Linux 64bit#2

Merged
syndbg merged 2 commits intomasterfrom
unknown repository
Jul 12, 2016
Merged

Fixed 1.6.2 hash for Linux 64bit#2
syndbg merged 2 commits intomasterfrom
unknown repository

Conversation

@ghost
Copy link
Copy Markdown

@ghost ghost commented Jul 12, 2016

No description provided.

@syndbg
Copy link
Copy Markdown
Member

syndbg commented Jul 12, 2016

👍

@syndbg syndbg merged commit 542e3cd into go-nv:master Jul 12, 2016
ChronosMasterOfAllTime added a commit that referenced this pull request Dec 16, 2025
- Replace LoadEnvironment with ignored errors with EnvironmentFromContextOrLoad
- Ensures consistent pattern across all environment loading fallbacks
- Addresses PR #2 review comments
github-merge-queue bot pushed a commit that referenced this pull request Mar 10, 2026
* Goenv go migration

* GOENV_AUTO_INSTALL

* Windows support, maybe

* Don't commit this

* Update workflows

* Remove old tests

* Remove plugins

* Powershell makes

* Minor cleanup

* Cleanup

* Remove legacy code

* Fix 0 args output

* Near parity

* Win compat

* Don't remove go in workflows

* Swap local goenv script for testing

* More verbose caching/version list strategy

* Prefer toolchain version over go version

* List tests

* Consistent stdio

* Swap go script

* Arg validation

* Expand path, tilde fixes

* Minor fixes

* Add completion installer

* Completion docs

* gofmt, fix tests, versions hardening, more rehash tests

* Hooks, shorthand, plugins, --complete flag, docs

* Revert hooks, plugins. It is far too risky -> arbitrary execution

* Safer hooks

* Ability to disable auto rehash, update docs

* Update readme

* VSCode integration, shorthands

* Binary release

* Fix swap, rehash, init loop

* Enhanced errors, fix global goenv path installs

* fmt

* GOENV_GOPATH_PREFIX impl, Fix possible race condition

* More tfswitchy

* More verbose discovery

* VScode/gitignore

* Smarter auto install

* Remove GOENV_GOMOD_VERSION_ENABLE

* env vars with stricter defs

* Update docs

* Fix init printing script prior to execution (not silent)

* Go go build, makes

* Update gh config

* Fix pathing issues, Simplify new commands but keep backwards compat

* Add clean command, enhance doctor

* Rename migrate sync-tools

* Fix tests

* Fix race condition

* Fix pr checks?

* Handle system go

* Try again

* Try again :/

* Ensure output to stdout

* Update clean test

* Fix init tests while still fixing init out

* Windows fixes?

* Cache isolation

* More windows fixes, docs for cache isolation

* Windohs strikes again

* More windohs patches

* More pathutils

* More path utils, even more isolation

* Everywhere but Windows Slash to  win-slash

* More widows fixes

* # more windows

* Even more

* Windows is a pane

* This one too

* Whence windows

* Hopefully, maybe

* Race condition?

* Harden action more

* Cleaner approach

* This finally it?

* Curses!

* Skip it then

* Different sleep mech

* !MAJOR! enhancements

* Fix tests maybe

* More isolation

* More fixes

* More isolation

* Hopefully fix

* Winduhs

* Remove old

* update go.mod

* Nitpicks, docs, etc

* Organize cmd

* Windohs fixes

* Add refs

* Windows again

* Write changes for windows

* Enhance
  feat: Add version usage analysis and major UX enhancements

     This massive update adds 7 new commands, enhances diagnostics, improves tool
     management, and introduces version usage scanning to help users manage their
     Go installations more effectively.

     🎉 7 New Commands
     1. goenv info - Detailed version information with lifecycle tracking
     2. goenv compare - Side-by-side version comparison
     3. goenv status - Quick installation health check
     4. goenv setup - Automatic first-time configuration wizard
     5. goenv get-started - Interactive beginner's guide
     6. goenv explore - Command discovery by intent/category
     7. goenv versions --used - Scan projects for version usage (🆕)

     🔥 Doctor Improvements
     - Interactive fix mode (--fix) - automatically repair issues
     - 3 new diagnostic checks (shell environment, profile sourcing, duplicate
   installations)
     - 18 structured issue types with automated fixes
     - Better UX (colors, emojis, clearer messages)
     - Detects "undo sourcing" scenarios (major pain point)

     🔍 Version Usage Analysis (New!)
     - goenv versions --used - Scan current directory tree for version usage
     - Shows which versions are used by projects (.go-version, go.mod)
     - Helps identify versions safe to remove
     - Depth control with --depth flag (default: 3 levels)
     - Fast performance (<1s for typical project trees)
     - Smart directory skipping (node_modules, .git, vendor, etc.)

     📦 Tool Management Enhancements
     - New commands: install, uninstall, list, status, outdated
     - --all flag to operate across all Go versions
     - Better tool consistency checking
     - Improved sync capabilities

     📦 +6 Internal Packages
     - internal/lifecycle - Go version EOL tracking (1.12-1.25)
     - internal/shellutil - Enhanced shell detection & management
     - internal/utils/prompt.go - Interactive prompting system
     - internal/utils/firstrun.go - First-run detection utilities
     - internal/utils/output.go - Consistent output formatting
     - internal/manager/scan.go - Project scanning for version analysis

* Windows fixes

* Windohs path fix

* Try again

* Again

* Again

* Sigh

* Le sigh

* So annoying

* feat: Interactive + auto-install setup workflows for goenv + MASSIVE consolidation.

- Added InteractiveSetup and AutoInstallSetup structs to handle user interactions and automatic installations.
- Implemented version discovery from .go-version and go.mod files.
- Added prompts for installation and VS Code settings updates.
- Introduced WorkflowResult and AutoInstallResult types to encapsulate outcomes of the workflows.
- Enhanced error handling and user feedback throughout the setup processes.

refactor: Improve command execution in build-tool script

- Replaced direct exec.Command calls with utility functions for better error handling and context management.
- Updated platform checks to use the new platform package for OS detection.
- Streamlined directory creation and permission setting with utility functions.

fix: Optimize embedded version generation script

- Refactored fetchReleases function to use a utility for fetching JSON with timeout.
- Improved file size reporting after generating embedded versions.

chore: Enhance swap script with platform-specific checks

- Updated OS checks to utilize the platform package for better readability.
- Refactored file existence checks and command executions to use utility functions.

test: Add test utilities for easier test file handling

- Introduced WriteTestFile and StripDeprecationWarning functions to simplify test setup and output processing.

* Fix ci tests

* Windows test fixes

* Cleanup

* More cleanup

* Windows again

* Testify!

* Sync tool fix

* Cache cleanup

* Support multiple release drafter configs

* Make-ify

* feat: enhance install/uninstall with auto-detection and partial version support

**Install command auto-detection:**
- Detects version from .go-version in current directory or parents
- Falls back to go.mod directive when no .go-version exists
- Uses latest stable as final fallback
- Explicit version arguments override auto-detection
- Quiet mode suppresses all detection messages

**Partial version resolution:**
- `goenv install 1.21` resolves to latest 1.21.x (e.g., 1.21.13)
- `goenv uninstall 1.22` intelligently handles multiple matches
- Proper prefix matching prevents false matches (1.2 ≠ 1.21)

**Uninstall improvements:**
- Interactive selection when multiple versions match
- `--all` flag to uninstall all matching versions
- Non-interactive mode picks latest automatically
- Smart version resolution with user feedback

**Enhanced documentation:**
- Updated COMMANDS.md with install auto-detection examples
- Added troubleshooting and best practices
- CI/CD integration examples
- Security checksum verification guidance

**Doctor command enhancements:**
- Detects obsolete v3 environment variables (GOENV_PREPEND_GOPATH, etc.)
- Checks for unnecessary PATH entries in Homebrew installations
- Warns about stale configuration that could cause issues

**Comprehensive test coverage:**
- Auto-detection scenarios (7 test cases)
- Partial version resolution (6 test cases)
- Interactive vs non-interactive behavior
- Multi-version uninstall workflows
- Help text validation
- Edge case prefix matching

- Old `goenv install` behavior unchanged when explicit version provided
- New auto-detection only activates when no version argument given
- Uninstall now supports partial versions (previously required exact match)

* Fix windows install script

* windows compat fixes

* feat: update Go version to 1.25.4 and enhance PATH order handling in init scripts

* Enhance VS Code integration with goenv

- Introduced `goenv vscode setup` command for comprehensive setup, combining initialization, syncing, and validation.
- Improved user experience by checking for Go extension settings and preventing PATH injection.
- Added interactive prompts for auto-detecting VS Code workspace and configuring settings.
- Implemented `goenv.autoSync` feature to automatically update VS Code settings when changing Go versions.
- Updated documentation to reflect new commands and troubleshooting steps for common issues.
- Added new troubleshooting guide for VS Code integration, addressing common problems and solutions.
- Enhanced error handling and user feedback during configuration processes.
- Introduced new internal functions for managing VS Code user settings and checking Go extension configuration.

* feat: enhance version handling to support partial versions in validation and path resolution

* Tests!

* feat: implement lifecycle data fetching and embedded fallback mechanism

* fix: make dummy go binary creation platform-appropriate

* remove .go-version

* fix tool install?

* move default tools -> tools internal

* unset GOENV_DEBUG before tests

* install behavior is the same but I am still doing something wrong LOL

* add test for duplicate GOPATH prevention in rehash command; refactor getGopathBinDir to use config

* slice utils

* update tool installations

* add Cyclone and Syft to list of common tools

* clear variable name

* temp fix directory resolution

* fix rehahs test mismatched bracket

* fix SBOM test

* refactor: implement resolver for binary path resolution and streamline shim management

* fix goenv version resolution. Do we need a centralized version resolver too like we did for paths?

* Fix version resolution for all commands

* fix vscode version sync

* fix tests

* fix installation dir and resolved version installation

* fix Doctor diagnostics

* try fixing windows test?

* Fix flaky test?

* Use proper contexts instead of 'SetupContext'

* Use Environment Context over consts (#2)

* Use Environment Context over consts

* fromagging

* Use EnvironmentFromContextOrLoad for consistent error handling

- Replace LoadEnvironment with ignored errors with EnvironmentFromContextOrLoad
- Ensures consistent pattern across all environment loading fallbacks
- Addresses PR #2 review comments

* address copilot

* Add first cut of SBOM implementation (#1)

* Add first cut of SBOM impl

* Phase 1 enhancement

* according to AI, it's done

* makefile updates

* add the sbom auto install for a given tool

* Fix SBOM test

* ignore SBOM json

* Update for policy checks

* Phase 3 Implementation

* Update strategy doc

* update SBOM strategy

* fix tests

* complete phase 4 scanning ability

* add quick docs

* sbom drift and format and diff

* ci and hooks

* Policy Enforcement

* Policy Enforcement

* Compliance Policy implementation

* Fix tests?

* Fix Windows test failures

- Add sanitizeTestName() to handle Windows-invalid path characters (colons)
- Skip Unix executable permission checks on Windows (Windows uses file extensions)
- TestBuildConstraintAnalysis: Use sanitized directory names
- TestHookManager_InstallHook: Only check executable bit on Unix platforms

All tests now pass on Windows, macOS, and Linux.

* Fix SBOM issues

* add better test reporting

* use latest release drafter

---------

Co-authored-by: Efstathios Chouliaris <Efstathios.Chouliaris@thomsonreuters.com>
Co-authored-by: ChronosMasterOfAllTime <efstathiosc@gmail.com>
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.

2 participants