Skip to content

v2 refs - #6187

Closed
vito wants to merge 18 commits into
dagger:mainfrom
vito:refs-v2
Closed

v2 refs#6187
vito wants to merge 18 commits into
dagger:mainfrom
vito:refs-v2

Conversation

@vito

@vito vito commented Dec 1, 2023 •

Copy link
Copy Markdown
Contributor

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

vito added 2 commits November 29, 2023 19:50
Signed-off-by: Alex Suraci <[email protected]>
* 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 <[email protected]>
vito added 11 commits December 3, 2023 16:54
* 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 <[email protected]>
Signed-off-by: Alex Suraci <[email protected]>
not really seeing a way this expands the attack vector

Signed-off-by: Alex Suraci <[email protected]>
Signed-off-by: Alex Suraci <[email protected]>
@vito vito changed the title wip: v2 refs v2 refs Dec 3, 2023
@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 <[email protected]>
Signed-off-by: Alex Suraci <[email protected]>
Signed-off-by: Alex Suraci <[email protected]>
@github-actions

Copy link
Copy Markdown
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.

@github-actions

Copy link
Copy Markdown
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