Giter VIP home page Giter VIP logo

Comments (11)

sol avatar sol commented on June 19, 2024

Ideally the approach can be extended to arch and flag, if we ever reach the point that we need it.

Relevant Cabal documentation: https://www.haskell.org/cabal/users-guide/developing-packages.html#conditional-blocks

cc @Fuuzetsu @soenkehahn

from hpack.

sol avatar sol commented on June 19, 2024

Some ideas:

dependencies:
  - name: Win32
    when: os(windows) && arch(i386)
  - name: unix
    when: "!os(windows)"

windows-i386-dependencies:
  - Win32
unix-dependencies:
  - unix
os:
  windows:
    arch:
      i386:
        dependencies: Win32
  other:
    dependencies: unix
if:
  condition: os(windows) && arch(i386)
  then:
    dependencies:
      - Win32
  else:
    dependencies:
      - unix

from hpack.

sol avatar sol commented on June 19, 2024
when:
  condition: os(windows) && arch(i386)
  dependencies:
    - Win32
when:
  condition: "!os(windows)"
  dependencies:
    - unix

from hpack.

sol avatar sol commented on June 19, 2024
when:
  os: windows
  arch: i386
  dependencies:
    - Win32

when:
  os: "!windows"
  dependencies:
    - unix

from hpack.

sol avatar sol commented on June 19, 2024
when:
  condition: os(windows) && arch(i386)
  then:
    dependencies:
      - Win32
  else:
    dependencies:
      - unix

from hpack.

sol avatar sol commented on June 19, 2024

For flags:

flags:
  integration-tests:
    description: Run the integration test suite
    manual: yes
    default: no

or

flags:
  - name: integration-tests
    description: Run the integration test suite
    manual: yes
    default: no

from hpack.

qoelet avatar qoelet commented on June 19, 2024
when:
  - condition: os(windows) && arch(i386)
    dependencies:
      - Win32
  - condition: "!os(windows)"
    dependencies:
      - unix

from hpack.

jkarni avatar jkarni commented on June 19, 2024

Any decisions? The last one, and either of the flag proposals, sound good to me. Happy to help implementing.

from hpack.

sol avatar sol commented on June 19, 2024

Yes, sounds good to me. Maybe the first flags proposal?

Sent from my iPhone

On 24 Sep 2015, at 9:12 pm, Julian Arni [email protected] wrote:

Any decisions? The last one, and either of the flag proposals, sound good to me. Happy to help implementing.


Reply to this email directly or view it on GitHub.

from hpack.

phadej avatar phadej commented on June 19, 2024

I long avoided need to flags, but atm I just cannot avoid it anymore. So I'd like to see this happen. I'd like the

flags:
  integration-tests:
    description: Run the integration test suite
    manual: yes
    default: no

and

when:
  - condition: os(windows) && arch(i386)
    dependencies:
      - Win32
  - condition: "!os(windows)"
    dependencies:
      - unix
  - condition: flag(integration-tests)
    dependencies:
      - QuickCheck

from hpack.

sol avatar sol commented on June 19, 2024

Supports for conditionals is on master and we have PRs for flags.

Closing.

from hpack.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.