Skip to content

Update TypeSpec constants for 1.0 #1432

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

Draft
wants to merge 1 commit into
base: dev
Choose a base branch
from

Conversation

creatorrr
Copy link
Contributor

Summary

  • update TypeSpec dependencies to ^1.0
  • update default constants in .tsp files to new {}/[] syntax

Testing

  • TYPESPEC_SKIP_COMPILER_RESOLVE=1 NODE_PATH=node_modules/typespec-compiler-new:node_modules/typespec-http-new:node_modules/typespec-openapi-new:node_modules/typespec-openapi3-new node node_modules/typespec-compiler-new/cmd/tsp.js compile . --no-emit (fails: Unexpected directive name)

Copy link
Contributor

qodo-merge-for-open-source bot commented May 20, 2025

CI Feedback 🧐

(Feedback updated until commit d9056f1)

A test triggered by this PR failed. Here is an AI-generated analysis of the failure:

Action: Typecheck

Failed stage: Generate openapi code [❌]

Failure summary:

The action failed during the npm package installation step in the typespec directory. Specifically,
npm could not find a matching version for the package @typespec/rest@^1.0.0. The error message
indicates that the requested package version doesn't exist in the npm registry.

Relevant error logs:
1:  ##[group]Operating System
2:  Ubuntu
...

159:  prune-cache: true
160:  ignore-nothing-to-cache: false
161:  ##[endgroup]
162:  Downloading uv from "https://github.com/astral-sh/uv/releases/download/0.7.6/uv-x86_64-unknown-linux-gnu.tar.gz" ...
163:  [command]/usr/bin/tar xz --warning=no-unknown-keyword --overwrite -C /home/runner/work/_temp/5bc28b09-e053-4395-8b64-d3cdae500ad7 -f /home/runner/work/_temp/330a96f1-fd68-49e9-a23c-6e4ae9b59c7e
164:  Added /opt/hostedtoolcache/uv/0.7.6/x86_64 to the path
165:  Added /home/runner/.local/bin to the path
166:  Set UV_CACHE_DIR to /home/runner/work/_temp/setup-uv-cache
167:  Successfully installed uv version 0.7.6
168:  Searching files using cache dependency glob: **/uv.lock
169:  /home/runner/work/julep/julep/agents-api/uv.lock
170:  /home/runner/work/julep/julep/cli/uv.lock
171:  /home/runner/work/julep/julep/integrations-service/uv.lock
172:  Found 3 files to hash.
173:  Trying to restore uv cache from GitHub Actions cache with key: setup-uv-1-x86_64-unknown-linux-gnu-0.7.6-d92603d25acef1c08e643c37cc2475e5e190deb9690356b084828d60043a591f
174:  ##[warning]Failed to restore: Cache service responded with 422
175:  No GitHub Actions cache found for key: setup-uv-1-x86_64-unknown-linux-gnu-0.7.6-d92603d25acef1c08e643c37cc2475e5e190deb9690356b084828d60043a591f
...

189:  ##[endgroup]
190:  ##[group]Run cd typespec; npm ci; cd -
191:  �[36;1mcd typespec; npm ci; cd -�[0m
192:  �[36;1mexport PATH=$PATH:$PWD/typespec/node_modules/.bin�[0m
193:  �[36;1mbash scripts/generate_openapi_code.sh�[0m
194:  shell: /usr/bin/bash -e {0}
195:  env:
196:  UV_CACHE_DIR: /home/runner/work/_temp/setup-uv-cache
197:  pythonLocation: /opt/hostedtoolcache/Python/3.12.10/x64
198:  PKG_CONFIG_PATH: /opt/hostedtoolcache/Python/3.12.10/x64/lib/pkgconfig
199:  Python_ROOT_DIR: /opt/hostedtoolcache/Python/3.12.10/x64
200:  Python2_ROOT_DIR: /opt/hostedtoolcache/Python/3.12.10/x64
201:  Python3_ROOT_DIR: /opt/hostedtoolcache/Python/3.12.10/x64
202:  LD_LIBRARY_PATH: /opt/hostedtoolcache/Python/3.12.10/x64/lib
203:  ##[endgroup]
204:  npm error code ETARGET
205:  npm error notarget No matching version found for @typespec/rest@^1.0.0.
206:  npm error notarget In most cases you or one of your dependencies are requesting
207:  npm error notarget a package version that doesn't exist.
208:  npm error A complete log of this run can be found in: /home/runner/.npm/_logs/2025-05-20T17_45_11_245Z-debug-0.log
209:  ##[error]Process completed with exit code 1.
210:  Post job cleanup.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant