nx icon indicating copy to clipboard operation
nx copied to clipboard

[Import] Nx Import doesn't move tags

Open DanielRivers opened this issue 1 year ago • 3 comments

Current Behavior

import project using nx import command imports the commits all good, however the tags are left on what appears to be a shadow commit tree and new tags are not created or moved over.

Expected Behavior

Tags moved to the new commits, ideally with the project prefix in format which will work with nx release

GitHub Repo

https://github.com/DanielRivers/nx-import-demo

Steps to Reproduce

  1. run nx import importing from a repo with tags
  2. View tags on local git, will not be attached to any commit

Nx Report

NX   Report complete - copy this into the issue template

Node           : 22.0.0
OS             : darwin-arm64
Native Target  : aarch64-macos
pnpm           : 8.14.1

nx (global)        : 19.4.2
nx                 : 19.8.2
@nx/js             : 19.8.2
@nx/workspace      : 19.8.2
@nx/eslint-plugin  : 19.8.2
@nx/vite           : 19.8.2
@nx/web            : 19.8.2
---------------------------------------
Registered Plugins:
@nx/vite/plugin

Failure Logs

No response

Package Manager Version

pnpm 8.14.1

Operating System

  • [X] macOS
  • [ ] Linux
  • [ ] Windows
  • [ ] Other (Please specify)

Additional Information

Viewing tag shows

image

https://github.com/DanielRivers/nx-import-demo/commit/375a26094270cfc8cacb61d4bfbc6aeeb471b583

DanielRivers avatar Sep 27 '24 14:09 DanielRivers

I'm not even able to get this command to work... I keep getting an NX Cannot find project error when I run nx import [source] [dest], even when I pass it a valid github url....

ken-playerlync avatar Oct 15 '24 18:10 ken-playerlync

@ken-playerlync What I did was just run nx import and followed the commands

DanielRivers avatar Oct 15 '24 21:10 DanielRivers

@ken-playerlync What I did was just run nx import and followed the commands

@DanielRivers was your source project already a nx monorepo project?

ken-playerlync avatar Oct 16 '24 18:10 ken-playerlync

@ken-playerlync What I did was just run nx import and followed the commands

@DanielRivers was your source project already a nx monorepo project?

No

DanielRivers avatar Oct 20 '24 15:10 DanielRivers

HI @jaysoo , I can see you self assigned this, I am wondering if have any idea on resolution, I have approx 10 projects wanting to move into a NX monorepo and holding off until we can import with tags and them work in a way which will work with nx release ideally.

DanielRivers avatar Oct 24 '24 22:10 DanielRivers

This issue has been automatically marked as stale because it hasn't had any activity for 6 months. Many things may have changed within this time. The issue may have already been fixed or it may not be relevant anymore. If at this point, this is still an issue, please respond with updated information. It will be closed in 21 days if no further activity occurs. Thanks for being a part of the Nx community! 🙏

github-actions[bot] avatar Apr 23 '25 00:04 github-actions[bot]

Hi @jaysoo Was this resolved? I been waiting for it.

DanielRivers avatar Apr 23 '25 17:04 DanielRivers

@jaysoo This is still a problem on 21. Really want to move to nx, but this issue is making migration unfeasible.

Unless there is another way to import projects, with tags which in the right format for nx release

DanielRivers avatar May 20 '25 18:05 DanielRivers

This issue has been automatically marked as stale because it hasn't had any activity for 6 months. Many things may have changed within this time. The issue may have already been fixed or it may not be relevant anymore. If at this point, this is still an issue, please respond with updated information. It will be closed in 21 days if no further activity occurs. Thanks for being a part of the Nx community! 🙏

github-actions[bot] avatar Dec 22 '25 00:12 github-actions[bot]