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

v2 refs #6187

Closed
wants to merge 18 commits into from
Closed

v2 refs #6187

wants to merge 18 commits into from

Conversation

vito
Copy link
Contributor

@vito vito commented Dec 1, 2023

This PR contains an RFC for v2 refs and implements it along the way.

TODO:

  • Rebase, --native default snuck in here
  • Backfill tests for git { tags }
  • Bikeshed new Git APIs
  • Implement mod:// and/or gh://as proposed (modulo feedback)
  • Refactor Ref/Source relationship (very tightly coupled; just fuse them or find a better boundary)

fixes DEV-3030

Signed-off-by: Alex Suraci <alex@dagger.io>
* Conn allows you to stub out query responses
* Connect just exports the connect func from core/integration/, which
  now calls it (not worth making all the tests slightly more verbose)

Signed-off-by: Alex Suraci <alex@dagger.io>
Signed-off-by: Alex Suraci <alex@dagger.io>
Signed-off-by: Alex Suraci <alex@dagger.io>
Signed-off-by: Alex Suraci <alex@dagger.io>
Signed-off-by: Alex Suraci <alex@dagger.io>
* these are all client helpers that can be useful to others anyway
* exposing a footest package is a common convention found in stdlib
  (e.g. net/http/httptest)
* allows it to reference internal EngineConn interface

Signed-off-by: Alex Suraci <alex@dagger.io>
Signed-off-by: Alex Suraci <alex@dagger.io>
Signed-off-by: Alex Suraci <alex@dagger.io>
not really seeing a way this expands the attack vector

Signed-off-by: Alex Suraci <alex@dagger.io>
Signed-off-by: Alex Suraci <alex@dagger.io>
Signed-off-by: Alex Suraci <alex@dagger.io>
Signed-off-by: Alex Suraci <alex@dagger.io>
@vito vito changed the title wip: v2 refs v2 refs Dec 3, 2023
Signed-off-by: Alex Suraci <alex@dagger.io>
@vito vito force-pushed the refs-v2 branch 2 times, most recently from fda8850 to cfca94c Compare December 4, 2023 23:41
* mod:// is now dv:// as it felt wrong to have the URI coupled to the
  object on the other end rather than purely the routing scheme.
* refs which default to `github.com` no longer need a leading `//`,
  which is now used to detect when an alternative host is set
* rename has to digest for consistency with elsewhere (e.g. Docker image
  refs)
* move https:// and oci:// to a later section
* reference the idea of having 'container.from' use a ref

Signed-off-by: Alex Suraci <alex@dagger.io>
Signed-off-by: Alex Suraci <alex@dagger.io>
Signed-off-by: Alex Suraci <alex@dagger.io>
Signed-off-by: Alex Suraci <alex@dagger.io>
Copy link
Contributor

This PR is stale because it has been open 14 days with no activity. Remove stale label or comment or this will be closed in 7 days.

Copy link
Contributor

This PR is stale because it has been open 14 days with no activity. Remove stale label or comment or this will be closed in 7 days.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants