question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

BUG?: update with any of the --keep-?? flags doesn't honour content:none in paket.dependencies

See original GitHub issue

Description

Not sure if it’s a bug, expected behaviour or something else. But if I do a paket update --keep-major when I have specified content:none for a package in paket.dependencies, I end up with the contents being copied to the project folder and the csproj being updated. Running paket update again removes the files as expected.

Repro steps

Please provide the steps required to reproduce the problem

  1. create an empty solution with an bare class library project
  2. paket init
  3. paket add nuget bootstrap project <projectname>
  4. note the addition of the content files to the project (folders contents, fonts, scripts)
  5. edit paket.dependencies and place content:none next to bootstrap
  6. paket update
  7. note the contents have been removed from the project
  8. paket update --keep-major
  9. note the contents are back.

Expected behavior

at step 9, the project should not contain the contents of the bootstrap package

Actual behavior

It does

Known workarounds

update the package.references file to include content:none for the package as well

Related information

  • Operating system: Windows 7
  • Branch : paket version 2.65.2.0
  • .NET Runtime, CoreCLR or Mono Version: 4.5
  • Performance information, links to performance testing scripts

Issue Analytics

  • State:closed
  • Created 7 years ago
  • Comments:9 (9 by maintainers)

github_iconTop GitHub Comments

2reactions
forkicommented, May 23, 2016

Puhh at least someone understood. 😉

0reactions
pms1969commented, May 24, 2016

Excellent work. Thanks. And yes, I think it was understood all round. 😉

Read more comments on GitHub >

github_iconTop Results From Across the Web

release-notes
BUGFIX: Update with any of the --keep-major flag didn't honour content:none in paket.dependencies - https://github.com/fsprojects/Paket/issues/1701 ...
Read more >
package.json
This file contains the dependencies renderized and super-streams which can be installed in a new project by executing npm install awesome-web-framework-1.0.0.
Read more >
I can't use libraries installed with paket tool
If your dotnet version is 6.0, you can't use any library you added. Solution is simple: just add net6.0 to that line. framework:...
Read more >
Docker Compose release notes
Fixed a bug with random missing network when a service has more than one. Fixed the Secrets file permission value to comply with...
Read more >
Release notes & updates – Azure CLI
Learn about the latest Azure Command-Line Interface (CLI) release notes and updates for both the current and beta versions of the CLI.
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found