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

Use local-dev-lib for archive and gitignore #960

Merged
merged 6 commits into from
Dec 4, 2023
Merged

Conversation

camden11
Copy link
Contributor

Description and Context

This swaps @hubspot/cli-lib/lib/git and @hubspot/cli-lib/archive for @hubspot/local-dev-lib/gitignore and @hubspot/local-dev-lib/archive respectively. Also adds a util for using logcallbacks, and updates debugErrorAndContext to include information about the cause of errors

Who to Notify

@brandenrodgers

@@ -117,7 +119,7 @@ exports.handler = async options => {
);
const configPath = getConfigPath();

checkAndUpdateGitignore(configPath);
checkAndAddConfigToGitignore(configPath);
Copy link
Contributor

Choose a reason for hiding this comment

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

It looks like in cli-lib the checkAndUpdateGitignore function was set up to purposely fail silently in the catch block. Maybe we want to add a try/catch here so we can keep the silent fail behavior?


const i18nKey = 'cli.commands.project.subcommands.download';
const { EXIT_CODES } = require('../../lib/enums/exitCodes');

const archiveLogCallbacks = buildLogCallbacks({
init: 'Extracting project source...',
Copy link
Contributor

Choose a reason for hiding this comment

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

Should this be added to the translations file?

@camden11
Copy link
Contributor Author

camden11 commented Dec 4, 2023

Fixed both of these!

@camden11 camden11 merged commit 5c92038 into master Dec 4, 2023
1 check passed
@camden11 camden11 deleted the swap-cli-lib-deps-4 branch December 4, 2023 17:06
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