fsprojects / fsprojects/Paket

Support variables in paket.template file

Open
#1,981 1 comment 4 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

configurability enhancement paket pack spec
Dominant language
F#
Stars
2.1k
Forks
528
Avg merge
1d 12m
Merged PRs (30d)
54

Description

Description

It would be great to specify variables on the paket pack commandline that will be expanded by paket while processing the paket.template file. This is useful to change paths based on the configuration. A neat option would be to specify defaults for a variable substitution (if it's not set).

Example

Sample paket.template file:

type file
id Example.AmazingPackage
description My Amazing Package by Example.com
version 1.0
authors john.doe@example.com
files
    bin/${ConfigurationDir = "Release"}/**/*

It can be invoked by paket pack ... -DConfigurationDir=Debug so it will package the files from the Debug folder instead.

Contributor guide

No contributing guide indexed for this repository

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start with the paket pack command and the processing of paket.template files. Define how -DConfigurationDir=Debug substitutions and the ConfigurationDir = "Release" default should behave, then verify that the example package selects the requested or default path.

Written by the indexing model from the issue text.

Assessment

Tech stack
fsharp
Domain
cli
Issue type
Feature
Difficulty
5/5
Estimated time
Over a week
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.