GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — mcpp.lock: an entry's targets change with the commands that ran, not with the resolution · Issue #903 · mcpp-community/mcpp

mcpp.lock: an entry's targets change with the commands that ran, not with the resolution #903

New issue
Copy link
New issue
Copy link
Closed
Closed
mcpp.lock: an entry's targets change with the commands that ran, not with the resolution#903
Copy link
Labels
bugSomething isn't workingSomething isn't working

Description

@Sunrisepeak
Sunrisepeak
opened on Nov 7, 2026
Issue body actions

What happens

The targets of a mcpp.lock entry depend on which commands ran last, not on the configurations the project builds. Observed on mcpp 2026.11.7.2 in the mcpp-language-server workspace (7 members; the lock records x86_64-linux-gnu and x86_64-openkal):

  1. mcpp test --workspace --no-run (default target) removes x86_64-linux-gnu from compat.xxhash and mcpplibs.mwrap.xxhash, which the root package uses on both targets:
    -targets = ["x86_64-linux-gnu", "x86_64-openkal"]
    +targets = ["x86_64-openkal"]
    The same happens with the manifests before any edit, so it is not caused by a manifest change. mcpp test --workspace --no-run --target x86_64-linux-gnu does not restore them.
  2. mcpp test -p mcppls-pack test_archive followed by the same command with --target x86_64-openkal adds targets = ["x86_64-linux-gnu", "x86_64-openkal"] to nine entries that had no targets line (compat.bzip2, compat.libarchive, compat.lz4, compat.mbedtls, compat.xz, …).

A lock is therefore rewritten by commands that change no resolution, and a committed lock differs from one regenerated in another order. Projects restore the lines by hand (mcpp-ide's aarch64 rows, mcpp-language-server's xxhash rows).

Expected

An entry's targets is the set of configurations in which the resolution reaches the package, kept for the configurations a command did not plan; a command that plans one configuration neither removes the others nor writes targets where the entry records none.

Reproduction

git clone https://github.com/Sunrisepeak/mcpp-language-server && cd mcpp-language-server
git checkout mcppls-0.0.21
mcpp test --workspace --no-run
git diff mcpp.lock            # (1)
git checkout mcpp.lock
mcpp test -p mcppls-pack test_archive && mcpp test -p mcppls-pack test_archive --target x86_64-openkal
git diff mcpp.lock            # (2)

Activity

  1. Sunrisepeak
    added
    bugSomething isn't workingSomething isn't working
    on Nov 7, 2026
  2. speak-agent commented on Nov 9, 2026

    @speak-agent
    speak-agent
    on Nov 9, 2026
    Member
    More actions

    Fixed in mcpp 2026.11.8.1 and kept in 2026.11.9.1: a configuration group's lock keeps the entries of the other groups, and an entry's targets follow the resolution, not the commands that ran (CHANGELOG 2026.11.8.1).

  3. speak-agent
    closed this as completedon Nov 9, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't workingSomething isn't working

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions

      You are visitor 01402503 — GeezerVison does not store the pages you look up.
      Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.