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

Issues with MacOS in Building Typescript Model for devfile/api #1380

Closed
Jdubrick opened this issue Dec 12, 2023 · 1 comment · Fixed by #1457
Closed

Issues with MacOS in Building Typescript Model for devfile/api #1380

Jdubrick opened this issue Dec 12, 2023 · 1 comment · Fixed by #1457
Labels
area/api Enhancement or issue related to the api/devfile specification kind/bug Something isn't working

Comments

@Jdubrick
Copy link
Contributor

Jdubrick commented Dec 12, 2023

Which area this feature is related to?

/kind bug
/area api

What versions of software are you using?

Operating System and version: MacOS Sonoma v14.1.1

Bug Summary

Describe the bug: When trying to run the bash ./build/typescript-model/generate.sh command from the CONTRIBUTING.md docs I am faced with the following console output:

readlink: illegal option -- m
usage: readlink [-fn] [file ...]
usage: dirname string [...]

To Reproduce: Run bash ./build/typescript-model/generate.sh from the root directory of your local devfile/api repo.

Expected behavior

The TypeScript model should be built as a result of running the command.

Any logs, error output, screenshots etc? Provide the devfile that sees this bug, if applicable

Additional context

Any workaround?

After doing research myself I think the issue may be related to the functionality of readLink on MacOS as I don't believe the -m flag is valid on MacOS. This comment explains more about a potential workaround but more research and testing would need to be done.

Extra Notes

Must ensure that the fix does not alter the way the script runs on other platforms other than MacOS.

@openshift-ci openshift-ci bot added kind/bug Something isn't working area/api Enhancement or issue related to the api/devfile specification labels Dec 12, 2023
@michael-valdron
Copy link
Member

@Jdubrick We should re-title this to "Issues with MacOS in Building Typescript Model for devfile/api".

@Jdubrick Jdubrick changed the title Issues Building Typescript Model for devfile/api Issues with MacOS in Building Typescript Model for devfile/api Dec 13, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area/api Enhancement or issue related to the api/devfile specification kind/bug Something isn't working
Projects
Status: Done ✅
Development

Successfully merging a pull request may close this issue.

2 participants