fsprojects / fsprojects/Paket

Paket (5.155.0) did not import targets for native projects

Open
#3,203 5 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

bug
Dominant language
F#
Stars
2.1k
Forks
528
Avg merge
1d 12m
Merged PRs (30d)
54

Description

Description

The boost library changed the package directory. In the old version, the structure is as following:

  • build
    • native
      • boost.targets

But in version 1.67.0.0, the structure is as following:

  • build
    • boost.targets

Paket did not import boost.targets for native projects.

Repro steps

See attached projects for testing.
TestPaket.zip

Expected behavior

Paket should add the following line:

<Import Project="..\..\packages\boost\build\native\boost.targets" Condition="Exists('..\..\packages\boost\build\native\boost.targets')" Label="Paket" />
Actual behavior

Nothing was adding to the project file.

Known workarounds

Probably change the package structure? But we don't have control on the packages.

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 by reproducing the native-project target import behavior with the attached TestPaket.zip and trace Paket's handling of package target files. Done when the boost.targets import is added for the reported package layout and the resulting project file matches the expected behavior.

Written by the indexing model from the issue text.

Assessment

Tech stack
fsharp
Domain
build-system, tooling
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.