Skip to content
  • Mel Zuser's avatar
    a482a63c
    Shorten script-builds paths (#8898) · a482a63c
    Mel Zuser authored
    * 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.*
    a482a63c
    Shorten script-builds paths (#8898)
    Mel Zuser authored
    * 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.*
Loading