core icon indicating copy to clipboard operation
core copied to clipboard

feat: add support for installing specific versions of packages

Open ThisIsMissEm opened this issue 9 months ago • 16 comments

🔗 Linked issue

This enables what's described in https://github.com/adonisjs/ace/issues/163

However, I cannot think of a way to actually test this, since @antfu/install-pkg doesn't provide a way to not actually do anything (i.e., run under test)

❓ Type of change

  • [ ] 🐞 Bug fix (a non-breaking change that fixes an issue)
  • [ ] 👌 Enhancement (improving an existing functionality like performance)
  • [x] ✨ New feature (a non-breaking change that adds functionality)
  • [ ] ⚠️ Breaking change (fix or feature that would cause existing functionality to change)

📚 Description

Currently when using node ace add <package> it's not possible to install a prerelease or specific released version of a package, so if we have @adonisjs/transmit releasing a prerelease of v5.0.0-next.0 which isn't the latest tag, but the next tag, we can't install that through node ace add, instead we'd have to install manually via package.json the specific version, and then call node ace configure <package> separately.

The way the tests are written, I cannot see a way to actually add test coverage for this.

📝 Checklist

  • [ ] I have linked an issue or discussion.
  • [ ] I have updated the documentation accordingly.

ThisIsMissEm avatar Feb 14 '25 19:02 ThisIsMissEm

This pull request has been marked as stale because it has been inactive for more than 21 days. Please reopen if you still intend to submit this pull request

github-actions[bot] avatar Mar 13 '25 00:03 github-actions[bot]

Haven't had time to progress on this, but I still think it's a good feature if we can figure out how to reasonably test it.

ThisIsMissEm avatar Mar 13 '25 04:03 ThisIsMissEm

Yup, no worries, we can keep it open.

thetutlage avatar Mar 13 '25 04:03 thetutlage

This pull request has been marked as stale because it has been inactive for more than 21 days. Please reopen if you still intend to submit this pull request

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

This pull request has been automatically closed because it has been inactive for more than 4 weeks. Please reopen if you still intend to submit this pull request

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

This pull request has been marked as stale because it has been inactive for more than 21 days. Please reopen if you still intend to submit this pull request

github-actions[bot] avatar May 20 '25 00:05 github-actions[bot]

This pull request has been marked as stale because it has been inactive for more than 21 days. Please reopen if you still intend to submit this pull request

github-actions[bot] avatar Jun 15 '25 00:06 github-actions[bot]

This pull request has been automatically closed because it has been inactive for more than 4 weeks. Please reopen if you still intend to submit this pull request

github-actions[bot] avatar Jun 21 '25 00:06 github-actions[bot]

This pull request has been marked as stale because it has been inactive for more than 21 days. Please reopen if you still intend to submit this pull request

github-actions[bot] avatar Jul 15 '25 00:07 github-actions[bot]

This pull request has been marked as stale because it has been inactive for more than 21 days. Please reopen if you still intend to submit this pull request

github-actions[bot] avatar Aug 06 '25 00:08 github-actions[bot]

This pull request has been marked as stale because it has been inactive for more than 21 days. Please reopen if you still intend to submit this pull request

github-actions[bot] avatar Aug 28 '25 00:08 github-actions[bot]

This pull request has been marked as stale because it has been inactive for more than 21 days. Please reopen if you still intend to submit this pull request

github-actions[bot] avatar Sep 19 '25 00:09 github-actions[bot]

This pull request has been marked as stale because it has been inactive for more than 21 days. Please reopen if you still intend to submit this pull request

github-actions[bot] avatar Oct 11 '25 00:10 github-actions[bot]

@ThisIsMissEm Can we pick this up for v7?

thetutlage avatar Oct 31 '25 10:10 thetutlage

@thetutlage the thing this stalled on was how to test it. I still don't have good ideas on that, but maybe we need a few stub packages just for the tests?

ThisIsMissEm avatar Oct 31 '25 11:10 ThisIsMissEm

This pull request has been marked as stale because it has been inactive for more than 21 days. Please reopen if you still intend to submit this pull request

github-actions[bot] avatar Nov 22 '25 00:11 github-actions[bot]