conan-io / conan-io/docs

"conan lock create" does not append to lock file

Open
#3,262 2 comments 0 reactions 0 assignees View on GitHub
Dominant language
C++
Stars
125
Forks
382
Avg merge
22h 39m
Merged PRs (30d)
21

Description

### Environment details

OS: WSL Ubuntu 20.04
Conan: 2.0.0

### Steps to reproduce

Running:
`conan lock create --profile:build: xxx --rpfile:host yyy conanfile.py --lockfile-out new.lock`

According to https://docs.conan.io/2/reference/commands/lock/create.html:

![image](https://github.com/conan-io/conan/assets/48069914/776af71d-f75f-4be8-b954-7b1c04d5062b)

I would expect my lock file to be extended every time I run lock create with different configs with that file as output.

What have I misunderstood?
How do I get it to extend the file?

Rgds
Klaus

### Logs

_No response_

Contributor guide

No contributing guide indexed for this repository

Research direction

Start with the lock create reference page linked in the report and compare its documented output behavior with the reproduced command. Clarify whether repeated runs append or overwrite, explain the supported way to obtain the intended result, and update the relevant documentation.

Written by the indexing model from the issue text.

Assessment

Domain
documentation
Issue type
Documentation
Difficulty
2/5
Estimated time
1-3 hours
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.