Skip to content

Add Golang Package type

What does this MR do?

Adds Go(lang) as a package type to Packages::Package and makes all the corresponding changes. Currently, Go packages are excluded from the API and UI. See #213770 and !34558 (merged).

DB Migration

Up

$ rails db:migrate:up RAILS_ENV=development VERSION=20200905013247
== 20200905013247 AddGolangPackageMaxFileSizeToPlanLimits: migrating ==========
-- add_column(:plan_limits, :golang_max_file_size, :bigint, {:default=>52428800, :null=>false})
   -> 0.0027s
== 20200905013247 AddGolangPackageMaxFileSizeToPlanLimits: migrated (0.0029s) =

Down

$ rails db:migrate:down RAILS_ENV=development VERSION=20200905013247
== 20200905013247 AddGolangPackageMaxFileSizeToPlanLimits: reverting ==========
-- remove_column(:plan_limits, :golang_max_file_size, :bigint, {:default=>52428800, :null=>false})
   -> 0.0033s
== 20200905013247 AddGolangPackageMaxFileSizeToPlanLimits: reverted (0.0060s) =

Does this MR meet the acceptance criteria?

Conformity

Availability and Testing

Edited by Ethan Reesor

Merge request reports

Loading