ruby-core@ruby-lang.org archive (unofficial mirror)
 help / color / mirror / Atom feed
* [ruby-core:120579] [Ruby master Feature#21020] Sync sig directory for prism of default gem.
@ 2025-01-09 14:49 ksss (Yuki Kurihara) via ruby-core
  2025-01-11 22:49 ` [ruby-core:120616] " kddnewton (Kevin Newton) via ruby-core
                   ` (3 more replies)
  0 siblings, 4 replies; 5+ messages in thread
From: ksss (Yuki Kurihara) via ruby-core @ 2025-01-09 14:49 UTC (permalink / raw)
  To: ruby-core; +Cc: ksss (Yuki Kurihara)

Issue #21020 has been reported by ksss (Yuki Kurihara).

----------------------------------------
Feature #21020: Sync sig directory for prism of default gem.
https://bugs.ruby-lang.org/issues/21020

* Author: ksss (Yuki Kurihara)
* Status: Open
----------------------------------------
Currently, the type signatures (RBS) for the default gem is not available.
**Prism** is the only default gem with type signatures, but this number is expected to increase in the future.

As a first step to resolving this issue, I propose including the `sig` directory of Prism as a default gem in the synchronization process.

PR: https://github.com/ruby/ruby/pull/12541



-- 
https://bugs.ruby-lang.org/
 ______________________________________________
 ruby-core mailing list -- ruby-core@ml.ruby-lang.org
 To unsubscribe send an email to ruby-core-leave@ml.ruby-lang.org
 ruby-core info -- https://ml.ruby-lang.org/mailman3/lists/ruby-core.ml.ruby-lang.org/

^ permalink raw reply	[flat|nested] 5+ messages in thread

* [ruby-core:120616] [Ruby master Feature#21020] Sync sig directory for prism of default gem.
  2025-01-09 14:49 [ruby-core:120579] [Ruby master Feature#21020] Sync sig directory for prism of default gem ksss (Yuki Kurihara) via ruby-core
@ 2025-01-11 22:49 ` kddnewton (Kevin Newton) via ruby-core
  2025-02-13 10:36 ` [ruby-core:120976] " hsbt (Hiroshi SHIBATA) via ruby-core
                   ` (2 subsequent siblings)
  3 siblings, 0 replies; 5+ messages in thread
From: kddnewton (Kevin Newton) via ruby-core @ 2025-01-11 22:49 UTC (permalink / raw)
  To: ruby-core; +Cc: kddnewton (Kevin Newton)

Issue #21020 has been updated by kddnewton (Kevin Newton).


I'm fine with this if everyone else is.

----------------------------------------
Feature #21020: Sync sig directory for prism of default gem.
https://bugs.ruby-lang.org/issues/21020#change-111447

* Author: ksss (Yuki Kurihara)
* Status: Open
----------------------------------------
Currently, the type signatures (RBS) for the default gem is not available.
**Prism** is the only default gem with type signatures, but this number is expected to increase in the future.

As a first step to resolving this issue, I propose including the `sig` directory of Prism as a default gem in the synchronization process.

PR: https://github.com/ruby/ruby/pull/12541



-- 
https://bugs.ruby-lang.org/
 ______________________________________________
 ruby-core mailing list -- ruby-core@ml.ruby-lang.org
 To unsubscribe send an email to ruby-core-leave@ml.ruby-lang.org
 ruby-core info -- https://ml.ruby-lang.org/mailman3/lists/ruby-core.ml.ruby-lang.org/

^ permalink raw reply	[flat|nested] 5+ messages in thread

* [ruby-core:120976] [Ruby master Feature#21020] Sync sig directory for prism of default gem.
  2025-01-09 14:49 [ruby-core:120579] [Ruby master Feature#21020] Sync sig directory for prism of default gem ksss (Yuki Kurihara) via ruby-core
  2025-01-11 22:49 ` [ruby-core:120616] " kddnewton (Kevin Newton) via ruby-core
@ 2025-02-13 10:36 ` hsbt (Hiroshi SHIBATA) via ruby-core
  2025-02-13 11:09 ` [ruby-core:120978] " Eregon (Benoit Daloze) via ruby-core
  2025-02-13 18:14 ` [ruby-core:120990] " kddnewton (Kevin Newton) via ruby-core
  3 siblings, 0 replies; 5+ messages in thread
From: hsbt (Hiroshi SHIBATA) via ruby-core @ 2025-02-13 10:36 UTC (permalink / raw)
  To: ruby-core; +Cc: hsbt (Hiroshi SHIBATA)

Issue #21020 has been updated by hsbt (Hiroshi SHIBATA).

Status changed from Open to Assigned
Assignee set to prism

I'm interesting that location of signature with fresh installation of ruby.

The sig directory under the `prism` is fine if we have only prism signature. Where is the best location if we will add `json` or `psych` signatures?

```
1. $prefix/lib/ruby/3.5.0+0/$name/sig <- current proposal
2. $prefix/lib/ruby/3.5.0+0/sig/$name
3. $prefix/lib/ruby/sig/$name
4. $prefix/lib/ruby/gems/3.5.0+0/sig/$name
5. $GEM_HOME/sig/$name # This is same as 4 with $GEM_HOME is not specified.
6. $prefix/include/sig/$name
7. $prefix/share/sig/$name
...
```

I prefer 2 or 3. 

----------------------------------------
Feature #21020: Sync sig directory for prism of default gem.
https://bugs.ruby-lang.org/issues/21020#change-111877

* Author: ksss (Yuki Kurihara)
* Status: Assigned
* Assignee: prism
----------------------------------------
Currently, the type signatures (RBS) for the default gem is not available.
**Prism** is the only default gem with type signatures, but this number is expected to increase in the future.

As a first step to resolving this issue, I propose including the `sig` directory of Prism as a default gem in the synchronization process.

PR: https://github.com/ruby/ruby/pull/12541



-- 
https://bugs.ruby-lang.org/
 ______________________________________________
 ruby-core mailing list -- ruby-core@ml.ruby-lang.org
 To unsubscribe send an email to ruby-core-leave@ml.ruby-lang.org
 ruby-core info -- https://ml.ruby-lang.org/mailman3/lists/ruby-core.ml.ruby-lang.org/

^ permalink raw reply	[flat|nested] 5+ messages in thread

* [ruby-core:120978] [Ruby master Feature#21020] Sync sig directory for prism of default gem.
  2025-01-09 14:49 [ruby-core:120579] [Ruby master Feature#21020] Sync sig directory for prism of default gem ksss (Yuki Kurihara) via ruby-core
  2025-01-11 22:49 ` [ruby-core:120616] " kddnewton (Kevin Newton) via ruby-core
  2025-02-13 10:36 ` [ruby-core:120976] " hsbt (Hiroshi SHIBATA) via ruby-core
@ 2025-02-13 11:09 ` Eregon (Benoit Daloze) via ruby-core
  2025-02-13 18:14 ` [ruby-core:120990] " kddnewton (Kevin Newton) via ruby-core
  3 siblings, 0 replies; 5+ messages in thread
From: Eregon (Benoit Daloze) via ruby-core @ 2025-02-13 11:09 UTC (permalink / raw)
  To: ruby-core; +Cc: Eregon (Benoit Daloze)

Issue #21020 has been updated by Eregon (Benoit Daloze).


How about `$prefix/lib/ruby/gems/3.5.0+0/gems/$name-$version/sig` so it would be consistent between default and bundled gems?

----------------------------------------
Feature #21020: Sync sig directory for prism of default gem.
https://bugs.ruby-lang.org/issues/21020#change-111881

* Author: ksss (Yuki Kurihara)
* Status: Assigned
* Assignee: prism
----------------------------------------
Currently, the type signatures (RBS) for the default gem is not available.
**Prism** is the only default gem with type signatures, but this number is expected to increase in the future.

As a first step to resolving this issue, I propose including the `sig` directory of Prism as a default gem in the synchronization process.

PR: https://github.com/ruby/ruby/pull/12541



-- 
https://bugs.ruby-lang.org/
 ______________________________________________
 ruby-core mailing list -- ruby-core@ml.ruby-lang.org
 To unsubscribe send an email to ruby-core-leave@ml.ruby-lang.org
 ruby-core info -- https://ml.ruby-lang.org/mailman3/lists/ruby-core.ml.ruby-lang.org/

^ permalink raw reply	[flat|nested] 5+ messages in thread

* [ruby-core:120990] [Ruby master Feature#21020] Sync sig directory for prism of default gem.
  2025-01-09 14:49 [ruby-core:120579] [Ruby master Feature#21020] Sync sig directory for prism of default gem ksss (Yuki Kurihara) via ruby-core
                   ` (2 preceding siblings ...)
  2025-02-13 11:09 ` [ruby-core:120978] " Eregon (Benoit Daloze) via ruby-core
@ 2025-02-13 18:14 ` kddnewton (Kevin Newton) via ruby-core
  3 siblings, 0 replies; 5+ messages in thread
From: kddnewton (Kevin Newton) via ruby-core @ 2025-02-13 18:14 UTC (permalink / raw)
  To: ruby-core; +Cc: kddnewton (Kevin Newton)

Issue #21020 has been updated by kddnewton (Kevin Newton).


I think the code in the PR is good, but I agree I don't think the sig should live under `prism/sig`. I think it should be top directory of ruby repository `sig`. When it's installed I agree with @Eregon but I also think @hsbt's solution 2 is fine, provided RBS knows to use the overridden version if one is provided.

----------------------------------------
Feature #21020: Sync sig directory for prism of default gem.
https://bugs.ruby-lang.org/issues/21020#change-111894

* Author: ksss (Yuki Kurihara)
* Status: Assigned
* Assignee: prism
----------------------------------------
Currently, the type signatures (RBS) for the default gem is not available.
**Prism** is the only default gem with type signatures, but this number is expected to increase in the future.

As a first step to resolving this issue, I propose including the `sig` directory of Prism as a default gem in the synchronization process.

PR: https://github.com/ruby/ruby/pull/12541



-- 
https://bugs.ruby-lang.org/
 ______________________________________________
 ruby-core mailing list -- ruby-core@ml.ruby-lang.org
 To unsubscribe send an email to ruby-core-leave@ml.ruby-lang.org
 ruby-core info -- https://ml.ruby-lang.org/mailman3/lists/ruby-core.ml.ruby-lang.org/

^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2025-02-13 18:14 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2025-01-09 14:49 [ruby-core:120579] [Ruby master Feature#21020] Sync sig directory for prism of default gem ksss (Yuki Kurihara) via ruby-core
2025-01-11 22:49 ` [ruby-core:120616] " kddnewton (Kevin Newton) via ruby-core
2025-02-13 10:36 ` [ruby-core:120976] " hsbt (Hiroshi SHIBATA) via ruby-core
2025-02-13 11:09 ` [ruby-core:120978] " Eregon (Benoit Daloze) via ruby-core
2025-02-13 18:14 ` [ruby-core:120990] " kddnewton (Kevin Newton) via ruby-core

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).