-
Notifications
You must be signed in to change notification settings - Fork 63
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
Conversation
packages/cli/commands/init.js
Outdated
@@ -117,7 +119,7 @@ exports.handler = async options => { | |||
); | |||
const configPath = getConfigPath(); | |||
|
|||
checkAndUpdateGitignore(configPath); | |||
checkAndAddConfigToGitignore(configPath); |
There was a problem hiding this comment.
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...', |
There was a problem hiding this comment.
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?
Fixed both of these! |
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 updatesdebugErrorAndContext
to include information about thecause
of errorsWho to Notify
@brandenrodgers