Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Shorten script-builds paths (backport #8898) #8970

Merged
merged 5 commits into from
May 30, 2023

Commits on May 24, 2023

  1. Shorten script-builds paths (#8898)

    * Use shorter hash for script-builds directories
    
    Using a Base64 hash and truncating it to 26 characters, saves 38 chars,
    which helps avoid long paths issues on Windows, while still providing
    130 bits of hash in order to avoid collisions.
    
    Bug #8841
    
    * Use the script cache dir as the dist dir
    
    Putting script build products under dist-newstyle within the cache
    directory is unnecessary because we already control the cache directory
    and can ensure there are no conflicts.
    
    * Use the actual script name in the executable name
    
    Previously, the script name was sanitized in final executable name,
    because the executable name had to match the component name, which only
    allowed for a limited character set. Now we can use the actual script
    name in the executable name. This only lets us shorten the component
    name without losing clarity.
    
    * Add changelog entry
    
    * Reenable script tests for Windows/ghc-9.4.*
    
    (cherry picked from commit a482a63)
    
    # Conflicts:
    #	cabal-install/src/Distribution/Client/CmdRun.hs
    #	cabal-install/src/Distribution/Client/ProjectConfig.hs
    bacchanalia authored and mergify[bot] committed May 24, 2023
    Configuration menu
    Copy the full SHA
    6a6ba55 View commit details
    Browse the repository at this point in the history

Commits on May 27, 2023

  1. fix merge conflicts

    ulysses4ever committed May 27, 2023
    Configuration menu
    Copy the full SHA
    5ea52be View commit details
    Browse the repository at this point in the history

Commits on May 28, 2023

  1. Configuration menu
    Copy the full SHA
    b68463a View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    9f3cc8b View commit details
    Browse the repository at this point in the history
  3. Configuration menu
    Copy the full SHA
    1afa540 View commit details
    Browse the repository at this point in the history