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

Fix {fmt} breaking OSS build #636

Closed
wants to merge 1 commit into from

Conversation

markbhasawut
Copy link
Contributor

@markbhasawut markbhasawut commented Jan 17, 2025

As t_whisker_generator was introduced in bbbd038, it broke the OSS build with error: ‘join’ is not a member of ‘fmt’.

The newer versions of {fmt} have fmt::join in fmt/ranges.h.

Fixes:

thrift/compiler/generate/t_whisker_generator.cc:117:40: error: ‘join’ is not a member of ‘fmt’
  117 |         "{}/{}", template_prefix, fmt::join(start, partial_path.end(), "/"));
      |                                        ^~~~

https://github.com/facebook/fbthrift/actions/runs/12822463794/job/35755425223

As t_whisker_generator was introduced in bbbd038,
it broke the OSS build with `error: ‘join’ is not a member of ‘fmt’`.

The newer versions of {fmt} have `fmt::join` in `fmt/ranges.h`.

Fixes:

```
thrift/compiler/generate/t_whisker_generator.cc:117:40: error: ‘join’ is not a member of ‘fmt’
  117 |         "{}/{}", template_prefix, fmt::join(start, partial_path.end(), "/"));
      |                                        ^~~~
```

https://github.com/facebook/fbthrift/actions/runs/12822463794/job/35755425223
@facebook-github-bot
Copy link
Contributor

@yoney has imported this pull request. If you are a Meta employee, you can view this diff on Phabricator.

@yoney
Copy link
Contributor

yoney commented Jan 17, 2025

merged, thanks!

@markbhasawut
Copy link
Contributor Author

Thanks!

facebook-github-bot pushed a commit to facebook/hhvm that referenced this pull request Jan 17, 2025
Summary:
As t_whisker_generator was introduced in bbbd038c9c5f2b1311e4d4d54c60fd022dc3ac19, it broke the OSS build with `error: ‘join’ is not a member of ‘fmt’`.

The newer versions of {fmt} have `fmt::join` in `fmt/ranges.h`.

Fixes:

```
thrift/compiler/generate/t_whisker_generator.cc:117:40: error: ‘join’ is not a member of ‘fmt’
  117 |         "{}/{}", template_prefix, fmt::join(start, partial_path.end(), "/"));
      |                                        ^~~~
```

https://github.com/facebook/fbthrift/actions/runs/12822463794/job/35755425223

X-link: facebook/fbthrift#636

Reviewed By: vitaut

Differential Revision: D68323045

Pulled By: yoney

fbshipit-source-id: 4280fa533d7e7e3efc3fbe0b080d40e18ade9dd8
@facebook-github-bot
Copy link
Contributor

@yoney merged this pull request in 3356369.

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

Successfully merging this pull request may close these issues.

3 participants