-
Notifications
You must be signed in to change notification settings - Fork 13
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
Temporarily disable localcommit files and buildscripts. #2853
Merged
Merged
Changes from 2 commits
Commits
Show all changes
10 commits
Select commit
Hold shift + click to select a range
28acf47
Merge branch 'DX-2224' of https://github.com/ActiveState/cli into DX-…
mitchell-as 727d151
Merge branch 'mitchell/dx-2133' into DX-2224
mitchell-as fb9374a
Merge branch 'mitchell/dx-2286-2' into DX-2224
mitchell-as fc95e97
Temporarily disable localcommit files.
mitchell-as c2215ab
Temporarily disable buildscripts.
mitchell-as a318633
Address PR feedback.
mitchell-as 894f455
Merge branch 'version/0-42-0-RC1' into mitchell/dx-2303
mitchell-as eae791b
Remove comments in imports.
mitchell-as 6a50dc9
Merge branch 'version/0-42-0-RC1' into mitchell/dx-2303
mitchell-as 9403510
Merge branch 'version/0-42-0-RC1' into mitchell/dx-2303
mitchell-as File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change | ||||
---|---|---|---|---|---|---|
|
@@ -20,7 +20,7 @@ import ( | |||||
"github.com/ActiveState/cli/internal/primer" | ||||||
"github.com/ActiveState/cli/internal/runbits" | ||||||
"github.com/ActiveState/cli/internal/runbits/commitmediator" | ||||||
"github.com/ActiveState/cli/pkg/localcommit" | ||||||
//"github.com/ActiveState/cli/pkg/localcommit" // re-enable in DX-2307 | ||||||
"github.com/ActiveState/cli/pkg/platform/authentication" | ||||||
"github.com/ActiveState/cli/pkg/platform/model" | ||||||
"github.com/ActiveState/cli/pkg/platform/runtime/setup" | ||||||
|
@@ -157,10 +157,11 @@ func (r *Initialize) Run(params *RunParams) (rerr error) { | |||||
} | ||||||
} | ||||||
|
||||||
emptyDir, err := fileutils.IsEmptyDir(path) | ||||||
if err != nil { | ||||||
multilog.Error("Unable to check if directory is empty: %v", err) | ||||||
} | ||||||
// Re-enable in DX-2307. | ||||||
//emptyDir, err := fileutils.IsEmptyDir(path) | ||||||
//if err != nil { | ||||||
// multilog.Error("Unable to check if directory is empty: %v", err) | ||||||
//} | ||||||
|
||||||
// Match the case of the organization. | ||||||
// Otherwise the incorrect case will be written to the project file. | ||||||
|
@@ -247,16 +248,17 @@ func (r *Initialize) Run(params *RunParams) (rerr error) { | |||||
return locale.WrapError(err, "err_init_commit", "Could not create initial commit") | ||||||
} | ||||||
|
||||||
if err := localcommit.Set(proj.Dir(), commitID.String()); err != nil { | ||||||
if err := commitmediator.Set(proj, commitID.String()); err != nil { | ||||||
return errs.Wrap(err, "Unable to create local commit file") | ||||||
} | ||||||
if emptyDir || fileutils.DirExists(filepath.Join(path, ".git")) { | ||||||
err := localcommit.AddToGitIgnore(path) | ||||||
if err != nil { | ||||||
r.out.Notice(locale.Tr("notice_commit_id_gitignore", constants.ProjectConfigDirName, constants.CommitIdFileName)) | ||||||
multilog.Error("Unable to add local commit file to .gitignore: %v", err) | ||||||
} | ||||||
} | ||||||
// Re-enable in DX-2307. | ||||||
//if emptyDir || fileutils.DirExists(filepath.Join(path, ".git")) {B | ||||||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more.
Suggested change
|
||||||
// err := localcommit.AddToGitIgnore(path) | ||||||
// if err != nil { | ||||||
// r.out.Notice(locale.Tr("notice_commit_id_gitignore", constants.ProjectConfigDirName, constants.CommitIdFileName)) | ||||||
// multilog.Error("Unable to add local commit file to .gitignore: %v", err) | ||||||
// } | ||||||
//} | ||||||
|
||||||
err = runbits.RefreshRuntime(r.auth, r.out, r.analytics, proj, commitID, true, target.TriggerInit, r.svcModel) | ||||||
if err != nil { | ||||||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
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 should be okay to let
goimports
handle this kind of stuff. I'm not sure how it will handle import statements with comments in them as we iterate on these files before we re-enable everything.