generation - Shorten File Names for Ruby

Open
#58 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Assessment

Difficulty
4/5
Estimated time
3-5 days
Newbie friendliness
35/100
Issue type
Bug
Clarity
Mostly clear
Activity status
Stale
Tech stack
ruby
Domain
tooling

Research direction

Start by reproducing the local build of msgraph-beta-sdk-ruby and tracing the Ruby generator path responsible for packaging file names. The work is done when long generated paths are shortened or hashed so the resulting Ruby gem builds successfully.

Written by the indexing model from the issue text.

Description

help wanted ruby type:bug
What are you generating using Kiota, clients or plugins?

API Client/SDK

In what context or format are you using Kiota?

Source Build

Client library/SDK language

Ruby

Describe the bug

Ruby gem has a limitation of 100 characters in files names including the folder path due to limitations on the tar library. We need to add this to the ruby generator to limit the file name length.

Current file lengths are causing failure in packaging any gems that have longer than 100 characters in the filename. e.g example build

Expected behavior

We should hash out files with long names and shrten them

How to reproduce

attempt to build https://github.com/microsoftgraph/msgraph-beta-sdk-ruby locally

Open API description file

No response

Kiota Version

v1.24.3

Latest Kiota version known to work for scenario above?(Not required)

No response

Known Workarounds

No response

Configuration

No response

Debug output
Click to expand log ```
</details>


### Other information

_No response_
Dominant language
Ruby
Stars
5
Forks
8
Avg merge
11h 9m
Merged PRs (30d)
24

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

More from microsoft/kiota-ruby

All issues in microsoft/kiota-ruby

Similar issues

More Ruby issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.