Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: Add support for custom package repositories #303

Open
2 tasks
mtwichel opened this issue Dec 18, 2024 · 0 comments
Open
2 tasks

feat: Add support for custom package repositories #303

mtwichel opened this issue Dec 18, 2024 · 0 comments
Labels
feature A new feature or request

Comments

@mtwichel
Copy link
Contributor

Description

Hi there 👋

According to https://dart.dev/tools/pub/custom-package-repositories, you're able to use pub dependencies hosted on repositories that are not pub.dev using the dart pub token add _____ command. Unfortunately, our workflows don't seem to support this credential type.

It would be awesome if we could support it, but I see a few big questions:

  1. You'd only want to run that command if you have tokens to pass in. (should be accomplishable with a if statement on that step.)
  2. You'd want to be able to pass in a list of tokens in the off chance you're using multiple pub dependencies. (Not sure if this is possible.)
  3. Each token needs the token itself AND the site it applies to, so a simple string probably won't work. Maybe a map with two values?

Not sure how we can support this, but since it's a part of the Dart CLI it's probably important to at least consider it. I personally ran into this issue working on a side project and it's led me away from the workflows.

Happy to chat further :)

Requirements

  • All CI/CD checks are passing.
  • There is no drop in the test coverage percentage.

Additional Context

No response

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
feature A new feature or request
Projects
Status: Needs Triage
Development

No branches or pull requests

1 participant