Skip to content

Unexpected re-builds with a dependency on GitHub's Win32 #2960

Closed
@egor-tensin

Description

@egor-tensin

This issue is Windows-only. I'm also not sure if it's expected behaviour, so I apologize beforehand if I should've just RTFM.

I'm building a project (https://github.com/egor-tensin/windows-env) with a dependency on a specific package version from GitHub. This package (Win32) is also present on Stackage, but it is currently falling behind a bit, lacking a bugfix from the upstream, so I'm pulling the correct version from GitHub using

- location: https://github.com/haskell/win32/archive/bf54fa7134eb9b1366f827426f050d833b2cda54.zip
  extra-dep: true

This version is basically identical to Stackage's, except for the bugfix. A few of my package's dependencies also depend on Win32.

Steps to reproduce

  1. Run cabal build.
  2. The package builds successfully (along with its dependencies).
  3. Run cabal build.

Expected

No re-building.

Actual

Many of package's dependencies are re-built.

Stack version

$ stack --version
Version 1.3.2, Git revision 3f675146590da4f3edf768b89355f798229da2a5 x86_64 hpack-0.15.0

Method of installation

  • Official binary, downloaded from stackage.org or fpcomplete's package repository

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions