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: consolidate paths into paths package #41

Merged
merged 4 commits into from
Jun 26, 2024
Merged

Conversation

colesnodgrass
Copy link
Member

No description provided.

@colesnodgrass colesnodgrass requested a review from a team June 26, 2024 03:39
@@ -209,8 +209,7 @@ func (d *Docker) MigrateComposeDB(ctx context.Context, volume string) error {
pterm.Debug.Println(fmt.Sprintf("Created initial migration container '%s'", conCopy.ID))

// docker cp [conCopy.ID]]:/$migratePGDATA/. ~/.airbyte/abctl/data/airbyte-volume-db/pgdata
userHome, _ := os.UserHomeDir()
dst := filepath.Join(userHome, ".airbyte", "abctl", "data", "airbyte-volume-db", "pgdata")
dst := filepath.Join(paths.Data, "airbyte-volume-db", "pgdata")
Copy link
Collaborator

Choose a reason for hiding this comment

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

I like where this is going, i think we could go even a little further and add some convenience methods like ensureDir, ensureFile, etc. All of which would be relative to $HOME/.airbyte

Copy link
Member Author

Choose a reason for hiding this comment

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

That's the plan, but I'll do that as part of a follow-up PR (after #40 has been merged)

@colesnodgrass colesnodgrass merged commit baae51d into cole/migrate Jun 26, 2024
1 check passed
@colesnodgrass colesnodgrass deleted the cole/paths branch June 26, 2024 17:07
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