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

Multiple accounts for deployment #703

Open
wants to merge 3 commits into
base: master
Choose a base branch
from

Conversation

easafe
Copy link
Contributor

@easafe easafe commented Apr 1, 2024

Add support for several --account flags. The accounts passed must already have been logged in. force import uses a mutex to synchonize concurrent deployments.

Add support for several --account flags. The accounts passed must already have been logged in. `force import` uses a mutex to synchonize concurrent deployments.
if _apiVersion != "" {
err := SetApiVersion(_apiVersion)
if err != nil {
ErrorAndExit(err.Error())
}
}

force = manager.getCurrentForce()
Copy link
Member

Choose a reason for hiding this comment

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

We'll need to only allow multiple --account options for commands that have been updated to support it. It's confusing if we accept multiple accounts then don't use them.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Which commands should support multiple accounts? Besides import

Copy link
Contributor Author

Choose a reason for hiding this comment

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

I think we also need to make sure that accounts are unique

command/deploy.go Show resolved Hide resolved
deployments.Add(1)
go func() {
defer deployments.Done()
err := deployWith(current, &status, files, &options, displayOptions)
Copy link
Member

Choose a reason for hiding this comment

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

I think we'll need to return the results so we can combine them. We'll get invalid output, especially with --reporttype junit, if we let each goroutine write it its own results.

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