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

[tsp-client] TypeError: tspLocation.additionalDirectories.map is not a function #8551

Closed
Alancere opened this issue Jul 3, 2024 · 5 comments · Fixed by #8662
Closed

[tsp-client] TypeError: tspLocation.additionalDirectories.map is not a function #8551

Alancere opened this issue Jul 3, 2024 · 5 comments · Fixed by #8662
Assignees
Labels
TypeSpec Issues or feature requests for tooling to support TypeSpec (Cadl)

Comments

@Alancere
Copy link
Contributor

Alancere commented Jul 3, 2024

exec: tsp-client update
image

tsp-location.yaml
from:

directory: specification/azurefleet/AzureFleet.Management
commit: 3cb1b51638616435470fc10ea00de92512186ece
repo: Azure/azure-rest-api-specs
additionalDirectories:
  - specification/mongocluster/DocumentDB.MongoCluster.Management
  - specification/apicenter/ApiCenter.Management

to ->

directory: specification/azurefleet/AzureFleet.Management
commit: 3cb1b51638616435470fc10ea00de92512186ece
repo: Azure/azure-rest-api-specs
additionalDirectories: specification/mongocluster/DocumentDB.MongoCluster.Management,specification/apicenter/ApiCenter.Management

position

Change the tsp-location.yaml additionalDirectories in the following location:

@Alancere Alancere added the TypeSpec Issues or feature requests for tooling to support TypeSpec (Cadl) label Jul 3, 2024
@catalinaperalta
Copy link
Member

@Alancere can you provide more information, did the tool change the format of your tsp-location.yaml or did you do that manually?

@Alancere
Copy link
Contributor Author

this my origin tsp-location.yaml content:

directory: specification/oracle/Oracle.Database
commit: 9a88bba565544d5907aaee7b10170fd770572904
repo: Azure/azure-rest-api-specs
additionalDirectories:
- specification/oracle/models

run tsp-client update --commit 9a88bba565544d5907aaee7b10170fd770572904 result:
image

tsp-location.yaml was changed by the tool to the following

directory: specification/oracle/Oracle.Database
commit: 9a88bba565544d5907aaee7b10170fd770572904
repo: Azure/azure-rest-api-specs
additionalDirectories: specification/oracle/models

@catalinaperalta
Copy link
Member

Investigating, looks like a bug in the tool

@catalinaperalta
Copy link
Member

@Alancere I have a fix, should be able to release a new version of tsp-client early next week.

@catalinaperalta
Copy link
Member

FYI this was fixed in the v0.9.4 release. Please update to that version and give it a try

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
TypeSpec Issues or feature requests for tooling to support TypeSpec (Cadl)
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants