microsoft / microsoft/apm

[BUG]In last version (0.30.0) It is not possible to install package with git tag

Open
#2,928 3 comments 0 reactions 1 assignee View on GitHub

@modelpath-dev is already working on this.

Since Sep 18, 2026.

status/accepted triage/recommended type/bug
Dominant language
Python
Stars
3.8k
Forks
362
Avg merge
1d 17h
Merged PRs (30d)
132

Description

Describe the bug
In last version (0.30.0) It is not possible to install package with git tag
0.20.0 has no such issue.

To Reproduce

  1. Create marketplace sample-marketplace (I have gitlab baseed marketplace)
  2. Publish package apm-sample-package with git tag v1.0.1
  3. apm install apm-sample-package@sample-marketplace#v1.0.1
    Error in resonse
[*] Validating 1 package...
[x] apm-sample-package@sample-marketplace#v1.0.1 -- No tag matching version '1.0.1' found for package 'apm-sample-package' (pattern='{version}', 
remote='.....'. Verify the published tags or set version to an explicit tag such as 'v1.0.0')
All packages failed validation. Nothing to install.

Expected behavior
Package is intalled

Additional context

Method resolve_version_constraint calls list_remote_refs to get list of refs.
This list_remote_refs has two parameters:
owner_repo and remote_url, but resolve_version_constraint provides only owner_repo with marketplace repo, not package repo.
Provided tag exists only in package repo and validation fails.

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.