Skip to content

Commit

Permalink
Merge pull request #185 from platformsh/akalipetis/issue-184
Browse files Browse the repository at this point in the history
Change service names to have dashes only
  • Loading branch information
akalipetis authored Nov 21, 2023
2 parents 30fc03a + f2414ab commit 7622359
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 4 deletions.
2 changes: 0 additions & 2 deletions .uspun/local/project.yaml

This file was deleted.

2 changes: 1 addition & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ test: generate ## Run unit tests

.PHONY: lint
lint: ## Run linter
command -v golangci-lint >/dev/null || go install github.com/golangci/golangci-lint/cmd/golangci-lint@latest
command -v golangci-lint >/dev/null || go install github.com/golangci/golangci-lint/cmd/golangci-lint@v1.52
golangci-lint run --timeout=10m --verbose

.PHONY: generate
Expand Down
2 changes: 1 addition & 1 deletion internal/question/services.go
Original file line number Diff line number Diff line change
Expand Up @@ -72,7 +72,7 @@ func (q *Services) Ask(ctx context.Context) error {
}

service := models.Service{
Name: strings.ReplaceAll(serviceName.String(), "-", "_"),
Name: strings.ReplaceAll(serviceName.String(), "_", "-"),
Type: models.ServiceType{
Name: serviceName.String(),
Version: versions[0],
Expand Down

0 comments on commit 7622359

Please sign in to comment.