Skip to content

Conversation

@DavidGOrtega
Copy link
Contributor

@DavidGOrtega DavidGOrtega commented May 11, 2022

Removes native git dep. This effort tries to:

  • avoids future breakage due to git changes
  • avoids having to manage multiple git versions within the code

This effort introduces init function in CML. This might be a breaking change for anyone that is using CML as a lib opposed to the common CLI

@DavidGOrtega DavidGOrtega temporarily deployed to internal May 11, 2022 20:11 Inactive
@DavidGOrtega DavidGOrtega marked this pull request as draft May 11, 2022 20:11
@0x2b3bfa0
Copy link
Member

This might be a breaking change for anyone that is using CML as a lib opposed to the common CLI

I guess that this breaking change will be the only way to know if that's the case; I doubt it is. 😄

@DavidGOrtega DavidGOrtega temporarily deployed to internal May 11, 2022 20:14 Inactive
@0x2b3bfa0
Copy link
Member

Coining a new concept: fault–induced telemetry.

@DavidGOrtega DavidGOrtega temporarily deployed to internal May 11, 2022 20:20 Inactive
@DavidGOrtega DavidGOrtega temporarily deployed to internal May 11, 2022 21:29 Inactive
@DavidGOrtega DavidGOrtega changed the title No native git dependancy No native git dependency May 11, 2022
@DavidGOrtega DavidGOrtega temporarily deployed to internal May 12, 2022 10:48 Inactive
@casperdcl casperdcl added technical-debt Refactoring, linting & tidying p2-nice-to-have Low priority labels May 12, 2022
@casperdcl
Copy link
Contributor

breaking change for anyone that is using CML as a lib

I wouldn't call this a breaking change since "CML as a lib" is not documented so not (yet) a public API

@DavidGOrtega
Copy link
Contributor Author

I would not consider it p2, I would say p1 to avoid several disasters like in the past

@0x2b3bfa0
Copy link
Member

to avoid several disasters like in the past

...and [potentially] allow for different ones. 😄

throw new Error(`driver ${driver} unknown!`);
};

const fixGitSafeDirectory = () => {
Copy link
Member

Choose a reason for hiding this comment

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

This also solves the permission issues for any git commands ran by users. Should it be ported to the new library?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Im testing it. ideally should not be the case. We do not depend on git.

@DavidGOrtega
Copy link
Contributor Author

Im right now stuck on making the build with pkg. This is the main guilty
🙁

@0x2b3bfa0
Copy link
Member

0x2b3bfa0 commented May 13, 2022

It's a tough one. Have you considered using Babel to translate all the ESM imports into CJS ones?

@DavidGOrtega
Copy link
Contributor Author

It's a tough one. Have you considered using Babel to translate all the ESM imports into CJS ones?

I missed this comment.
Yes I tried. I tried to use cjs but its not working at all. Its a kind of a nightmare

@0x2b3bfa0
Copy link
Member

As per #1051 (comment), and lacking vercel/pkg#1323, this pull request will have to stay on CJS unless you find a better workaround. 😅

@0x2b3bfa0
Copy link
Member

Note that this pull request should ideally fix #628 (comment)

@0x2b3bfa0 0x2b3bfa0 added blocked Dependent on something else and removed p2-nice-to-have Low priority labels Sep 6, 2022
@0x2b3bfa0 0x2b3bfa0 force-pushed the master branch 15 times, most recently from eb1e5a3 to 9e8bdf4 Compare September 12, 2022 19:59
@0x2b3bfa0
Copy link
Member

0x2b3bfa0 commented Sep 13, 2022

@DavidGOrtega & @iterative/cml in general: this pull request is probably going to be blocked for a long time, because #1051 (comment) is going to take a couple eons to be released. Should we leave it open until then?

@0x2b3bfa0 0x2b3bfa0 force-pushed the master branch 5 times, most recently from 7243fd2 to 1e081f3 Compare September 30, 2022 04:22
@0x2b3bfa0 0x2b3bfa0 force-pushed the master branch 3 times, most recently from e2bed3a to fe9a06f Compare October 8, 2022 04:28
@0x2b3bfa0
Copy link
Member

Closing unmerged after leaving a note at #1051 (comment)

@0x2b3bfa0 0x2b3bfa0 closed this Feb 21, 2023
@0x2b3bfa0 0x2b3bfa0 deleted the feat/no-git-dep branch February 21, 2023 17:13
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

blocked Dependent on something else technical-debt Refactoring, linting & tidying

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants