Skip to content

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

Closed
@Jdubrick

Description

@Jdubrick

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    area/apiEnhancement or issue related to the api/devfile specificationkind/bugSomething isn't working

    Type

    No type

    Projects

    Status

    Done ✅

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions