Skip to content

Conversation

@fpellet
Copy link

@fpellet fpellet commented Nov 22, 2025

Changes

Add paket tool to new package manager (renovatebot/renovate#37287)
It depends of dotnet, and uses the dotnet tool manager to install the correct version.

Context

@fpellet fpellet changed the title Add Paket feat: add Paket Nov 22, 2025
@@ -0,0 +1,18 @@
#!/bin/bash

function check_tool_requirements () {
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

please create all in typescript instead of legacy v2 tool

Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Ok, I didn't copy the right example. 😅
I couldn't find any parent logic. Does it no longer exist?

When I run install-tool dotnet 10.0.100, the DOTNET_ROOT environment variable isn't exported. This is necessary to then run paket. It is correctly configured by dotnet on https://github.com/containerbase/base/blob/main/src/cli/tools/dotnet.ts#L67
What should I do to ensure that the environment variable is exported?

Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I understand with extraToolEnvs. Everything should be fine now 🙂

}

function install_tool () {
dotnet tool install -g paket --version "${TOOL_VERSION}"
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

it is possible to install it to a specific path?

Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

done

}

function link_tool () {
shell_wrapper paket "/root/.dotnet/tools"
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

this is broken when it's installed as user. renovate by default runs as user, not root.

Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

done

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Add paket manager support

2 participants