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

internal/devpkg: move flake code into new nix/flake package #1789

Merged
merged 1 commit into from
Feb 5, 2024

Conversation

gcurtis
Copy link
Collaborator

@gcurtis gcurtis commented Feb 5, 2024

Move devpkg.FlakeRef and devpkg.FlakeInstallable into a standalone go.jetpack.io/devbox/nix/flake package. This allows two things:

  • The backend can import and use these types because they're no longer internal.
  • The search client can use them without creating an import cycle.

Note that the types were renamed, which messed up git's ability to detect this is a file move. The summary of changes is:

  • FlakeRefflake.Ref
  • ParseFlakeRefflake.ParseRef
  • FlakeInstallableflake.Installable
  • ParseFlakeInstallableflake.ParseInstallable
  • FlakeTypeIndirect, FlakeTypePath, ... → flake.TypeIndirect, flake.TypePath, ...

Move `devpkg.FlakeRef` and `devpkg.FlakeInstallable` into a standalone
`go.jetpack.io/devbox/nix/flake` package. This allows two things:

- The backend can import and use these types because they're no longer
  internal.
- The search client can use them without creating an import cycle.
@gcurtis gcurtis merged commit 0515891 into main Feb 5, 2024
24 checks passed
@gcurtis gcurtis deleted the gcurtis/flake-package branch February 5, 2024 22:24
Copy link

@cklim2024 cklim2024 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

International code

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

internal/devpkg/package.go

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

Successfully merging this pull request may close these issues.

3 participants