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 — YAML anchors in compose file breaks when updating · Issue #11053 · updatecli/updatecli

YAML anchors in compose file breaks when updating #11053

New issue
Copy link
New issue
Copy link
Open
#11506
Open
YAML anchors in compose file breaks when updating#11053
#11506
Copy link
Labels
bugSomething isn't workingresource-yamlResource of kind YAML

Description

@frafra
frafra
opened on Oct 28, 2026
Issue body actions

Is there an existing issue for this?

  • I have searched the existing issues

Current Behavior

x-image: &image nginx:1.29

services:
  web:
    image: *image

Becomes

x-image: &image nginx:1.29

services:
  web:
    image: nginx:1.31@sha256:600f7cd45e27aa13e9304c834ab7c1b0ff39df85ee1dcc5087955455d77bc83b

Expected Behavior

x-image: &image nginx:1.31@sha256:600f7cd45e27aa13e9304c834ab7c1b0ff39df85ee1dcc5087955455d77bc83b

services:
  web:
    image: *image

Steps To Reproduce

No response

Environment

Docker container.

Application:	0.123.0
Golang     :	1.27.3 linux/amd64
Build Time :	2026-10-22T06:33:06Z

Pipeline Graph

graph TD
    target#web("deps: update Docker image :#quot;nginx:#quot; to :#quot;{{ source :#quot;web:#quot; }}:#quot; (yaml)")
    source#web-digest(["get latest image :#quot;nginx:#quot; digest (dockerdigest)"])
    source#web-digest --> target#web
    source#web(["get latest image tag for :#quot;nginx:#quot; (dockerimage)"])
    source#web --> target#web
    source#web --> source#web-digest
Loading

OpenTelemetry Trace

No response

Anything else?

No response

Activity

  1. frafra
    added
    bugSomething isn't working
    on Oct 28, 2026
  2. olblak
    added this to updateclion Oct 28, 2026
  3. github-project-automation
    moved this to Todo in updateclion Oct 28, 2026
  4. olblak commented on Nov 3, 2026

    @olblak
    olblak
    on Nov 3, 2026
    Member
    More actions

    Thanks for the issue.
    That's an interesting case that I never thought about

  5. olblak
    added
    resource-yamlResource of kind YAML
    on Nov 3, 2026
  6. mvanhorn commented on Nov 25, 2026

    @mvanhorn
    mvanhorn
    on Nov 25, 2026
    More actions

    The target compared the selected node directly and used ReplaceWithNode to overwrite it. When the selected node was an alias, this replaced the alias itself.

    The target resolves each alias to its most recent preceding anchor in the same document before comparing or reporting the current value. Updates write the value at its definition, preserving the anchor and every alias that refers to it.

    #11506

  7. mvanhorn
    added a commit that references this issue on Nov 25, 2026

    refactor: reduce scope to alias/anchor resolution for updatecli#11053

    135eccc
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 workingresource-yamlResource of kind YAML

    Type

    No type

    Projects

    • updatecli
      Status
      Todo
      Show more project fields

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions

    You are visitor 01402775 — 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.