-
Notifications
You must be signed in to change notification settings - Fork 70
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
Update version of golangci-lint to the latest version #1522
Conversation
cloud/deployment/deployment.go
Outdated
func deploymentToTableRow(table *printutil.Table, d *astroplatformcore.Deployment, includeWorkspaceName bool) { | ||
var clusterName, region string | ||
runtimeVersionText := d.RuntimeVersion + " (based on Airflow " + d.AirflowVersion + ")" | ||
cloudProvider := notApplicable | ||
releaseName := d.Namespace | ||
if IsDeploymentStandard(*d.Type) { | ||
cloudProvider = *d.CloudProvider | ||
region = *d.Region | ||
} else { | ||
clusterName = *d.ClusterName | ||
} | ||
cols := []string{ | ||
d.Name, | ||
releaseName, | ||
clusterName, | ||
cloudProvider, | ||
region, | ||
d.Id, | ||
runtimeVersionText, | ||
strconv.FormatBool(d.IsDagDeployEnabled), | ||
strconv.FormatBool(d.IsCicdEnforced), | ||
string(*d.Type), | ||
} | ||
if includeWorkspaceName { | ||
cols = slices.Insert(cols, 1, *d.WorkspaceName) | ||
} | ||
table.AddRow(cols, false) |
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.
I'd like a second pair of eyes on this change specifically.
4f2e262
to
2ae68d7
Compare
Codecov ReportAttention:
Additional details and impacted files@@ Coverage Diff @@
## main #1522 +/- ##
==========================================
+ Coverage 85.90% 85.92% +0.01%
==========================================
Files 112 112
Lines 14847 14838 -9
==========================================
- Hits 12755 12750 -5
+ Misses 1254 1252 -2
+ Partials 838 836 -2 ☔ View full report in Codecov by Sentry. |
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.
LGTM, apart from a single comment 🙂
This is needed to support Go 1.21 - Depguard changed to v2 so the default mod changed - Revive was just noisey, so has been removed - I removed some repeated (sub)strings into consts - I also moved a repeated code block (detected by contsnts) into a function
2ae68d7
to
63a9903
Compare
This is needed to support Go 1.21 - Depguard changed to v2 so the default mod changed - Revive was just noisey, so has been removed - I removed some repeated (sub)strings into consts - I also moved a repeated code block (detected by contsnts) into a function
…CLI (both for create and update) (#1516) * Add the ability to change the deployment type to dag_deploy from the CLI * Update version of golangci-lint to the latest version (#1522) This is needed to support Go 1.21 - Depguard changed to v2 so the default mod changed - Revive was just noisey, so has been removed - I removed some repeated (sub)strings into consts - I also moved a repeated code block (detected by contsnts) into a function * Update to latest Go versions (#1521) Also switch from using deprecated CircleCI images in favour of the new ones * Streamline getDeploymentTypeCmdMessage to show image, volume, git_sync, dag_only for all cases * change function call to constant --------- Co-authored-by: Ash Berlin-Taylor <ash_github@firemirror.com>
This is needed to support Go 1.21