rattler icon indicating copy to clipboard operation
rattler copied to clipboard

Checking in `pixi.lock`

Open trim21 opened this issue 8 months ago • 3 comments

similar idea to https://github.com/conda/rattler/issues/1103 , since yesterday renovate support refreshing lock file of pixi, maybe we should consider commit pixi.lock to git.

you will need to install this github app https://github.com/apps/renovate.

It will need a config file, I would suggest this:

{
  "$schema": "https://docs.renovatebot.com/renovate-schema.json",
  "enabledManagers": ["pixi"],
  "lockFileMaintenance": {
    "enabled": true,
    "recreateWhen": "always",
    "rebaseStalePrs": true,
    "branchTopic": "lock-file-maintenance",
    "commitMessageAction": "Lock file maintenance",
    "commitMessageTopic": "build",
    "schedule": [
      "before 4am on monday"
    ]
  }
}

and add --locked or --frozen to setup-pixi

https://github.com/prefix-dev/setup-pixi?tab=readme-ov-file#--frozen-and---locked

trim21 avatar Mar 12 '25 08:03 trim21

Sounds good to me.

What do you say @baszalmstra?

Hofer-Julian avatar Mar 13 '25 08:03 Hofer-Julian

Sounds good to me! Ill try setting up renovate for this repository.

baszalmstra avatar Mar 13 '25 09:03 baszalmstra

All supported manager is enabeld by default, so you will need a config to only pick pixi.

And it won't generate pixi.lock if we doesn't have one in the repo, it only update existing ones.

If we need semantic commits we also need these options:

{
  "semanticCommits": "enabled",
  "semanticCommitType": "build"
}

trim21 avatar Mar 13 '25 14:03 trim21

Looks like this was done in https://github.com/conda/rattler/pull/1158

benmoss avatar Jun 03 '25 13:06 benmoss