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

Resolve plugins path properly in migration commands #94

Merged
merged 3 commits into from
Oct 31, 2024

Conversation

JiriLojda
Copy link
Member

Motivation

Which issue does this fix? Fixes #issue number

If no issue exists, what is the fix or new feature? Were there any reasons to fix/implement things that are not obvious?

Checklist

  • Code follows coding conventions held in this repo
  • Automated tests have been added
  • Tests are passing
  • Docs have been updated (if applicable)
  • Temporary settings (e.g. variables used during development and testing) have been reverted to defaults

How to test

If manual testing is required, what are the steps?

@JiriLojda JiriLojda requested a review from a team as a code owner October 30, 2024 15:13
@pokornyd pokornyd self-requested a review October 30, 2024 15:16
return { err: `Provided plugins path ${path} does not exists` };
export const loadStatusPlugin = async (pluginsPath: string): Promise<WithErr<StatusPlugin>> => {
if (!fs.existsSync(pluginsPath)) {
return { err: `Provided plugins path ${pluginsPath} does not exists` };
Copy link
Member

Choose a reason for hiding this comment

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

does not exist

- plain absolute paths don't work on Windows so they need to be converted to file URLs
@JiriLojda JiriLojda merged commit efe475e into main Oct 31, 2024
2 of 3 checks passed
@JiriLojda JiriLojda deleted the fix_imports_in_migrations branch October 31, 2024 11:12
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