Metacello question

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
5 messages Options
Reply | Threaded
Open this post in threaded view
|

Metacello question

GLASS mailing list
I have a baseline that will support squeak, pharo, and gemstone.

The gemstone one I get, but how to load a specific version of a package from a squeak source repo?

spec
    for: #’squeak'
    do: [
      spec
        package:  'Cryptography'
        with: [
          spec
            file: 'Cryptography-zzz.111.mcz';
            repository: 'http://www.squeaksource.com/Cryptography' ] ].

  spec
    for: #'gemstone'
    do: [
      spec
        baseline: 'Cryptography'
        with: [
          spec
            loads: #('CI');
            repository: 'github://GsDevKit/Cryptography:master/repository' ] ]

I’ve been looking for an example in the many BaselineOf but couldn’t find an example that specifies the package, version and repository.

Cheers,

J
_______________________________________________
Glass mailing list
[hidden email]
http://lists.gemtalksystems.com/mailman/listinfo/glass
Reply | Threaded
Open this post in threaded view
|

Re: Metacello question

GLASS mailing list
Hi Jupiter

> On 08.11.2017, at 00:30, Jupiter Jones via Glass <[hidden email]> wrote:
>
> I have a baseline that will support squeak, pharo, and gemstone.
>
> The gemstone one I get, but how to load a specific version of a package from a squeak source repo?
>
> spec
>    for: #’squeak'
>    do: [
>      spec
>        package:  'Cryptography'
>        with: [
>          spec
>            file: 'Cryptography-zzz.111.mcz';
>            repository: 'http://www.squeaksource.com/Cryptography' ] ].
>
>  spec
>    for: #'gemstone'
>    do: [
>      spec
>        baseline: 'Cryptography'
>        with: [
>          spec
>            loads: #('CI');
>            repository: 'github://GsDevKit/Cryptography:master/repository' ] ]
>
> I’ve been looking for an example in the many BaselineOf but couldn’t find an example that specifies the package, version and repository.

To achive that, you would need a ConfigurationOf, I'd say.

best regards
        -Tobias

>
> Cheers,
>
> J
> _______________________________________________
> Glass mailing list
> [hidden email]
> http://lists.gemtalksystems.com/mailman/listinfo/glass

_______________________________________________
Glass mailing list
[hidden email]
http://lists.gemtalksystems.com/mailman/listinfo/glass
Reply | Threaded
Open this post in threaded view
|

Re: Metacello question

GLASS mailing list
Hi Tobias,

Thanks for your reply.

The repo is hosted on GitHub, and my understanding is that the BaselineOf is the more appropriate here.

So, if the baseline on GitHub, relies on a specific version of a package that’s on SqueakSource, how would I specify that?

If there was a ConfigurationOfCryptography on squeak source, I can see how to specify that - but there isn't. Just can’t see how to specify a single version of a package that’s in an external repository.

I’ll keep looking.

Thanks again.

J

On 8 Nov 2017, at 11:05 am, Tobias Pape <[hidden email]> wrote:

Hi Jupiter
On 08.11.2017, at 00:30, Jupiter Jones via Glass <[hidden email]> wrote:

I have a baseline that will support squeak, pharo, and gemstone.

The gemstone one I get, but how to load a specific version of a package from a squeak source repo?

spec
  for: #’squeak'
  do: [ 
    spec
      package:  'Cryptography'
      with: [ 
        spec
          file: 'Cryptography-zzz.111.mcz';
          repository: 'http://www.squeaksource.com/Cryptography' ] ].

spec
  for: #'gemstone'
  do: [ 
    spec
      baseline: 'Cryptography'
      with: [ 
        spec
          loads: #('CI');
          repository: '<a href="github://GsDevKit/Cryptography:master/repository" class="">github://GsDevKit/Cryptography:master/repository' ] ]

I’ve been looking for an example in the many BaselineOf but couldn’t find an example that specifies the package, version and repository.

To achive that, you would need a ConfigurationOf, I'd say.

best regards
-Tobias


Cheers,

J
_______________________________________________
Glass mailing list
[hidden email]
http://lists.gemtalksystems.com/mailman/listinfo/glass


_______________________________________________
Glass mailing list
[hidden email]
http://lists.gemtalksystems.com/mailman/listinfo/glass
Reply | Threaded
Open this post in threaded view
|

Re: Metacello question

GLASS mailing list
Hi,

In my project  i have something like:
url of entire file:
https://github.com/brunobuzzi/BpmFlow/blob/master/repository/BaselineOfBpmFlow.package/BaselineOfBpmFlow.class/instance/baseline..st

                spec project: 'XMLParser' with: [
                        spec className: 'ConfigurationOfXMLParser';
                                loads: #('default');
                                versionString: #stable;
                                repository:
'http://www.smalltalkhub.com/mc/PharoExtras/XMLParser/main'].
                spec project: 'XPath' with: [
                        spec className: 'ConfigurationOfXPath';
                                loads: #('default');
                                versionString: #stable;
                                file: 'ConfigurationOfXPath';
                                repository: 'http://www.smalltalkhub.com/mc/PharoExtras/XPath/main'].
                spec project: 'XMLWriter' with: [
                        spec className: 'ConfigurationOfXMLWriter';
                                versionString: #stable;
                                file: 'ConfigurationOfXMLWriter';
                                repository: 'http://smalltalkhub.com/mc/PharoExtras/XMLWriter/main';
                                loads: #('Core').
].



--
Sent from: http://forum.world.st/GLASS-f1460844.html
_______________________________________________
Glass mailing list
[hidden email]
http://lists.gemtalksystems.com/mailman/listinfo/glass
Reply | Threaded
Open this post in threaded view
|

Re: Metacello question

GLASS mailing list
In reply to this post by GLASS mailing list
Jupiter.

Is there a reason why the following wouldn't work for you:

   spec
     for: #'gemstone'
     do: [
       spec
         baseline: 'Cryptography'
         with: [
           spec
             loads: #('Cryptography');
             repository: 'github://GsDevKit/Cryptography:master/repository' ] ]


With the 'loads:' spec you can specify any named object in the baseline
and in this case you specify the package ... if the package itself has
dependencies then those would be satisfied as well ...

Dale

On 11/7/17 3:30 PM, Jupiter Jones via Glass wrote:

> I have a baseline that will support squeak, pharo, and gemstone.
>
> The gemstone one I get, but how to load a specific version of a package from a squeak source repo?
>
> spec
>      for: #’squeak'
>      do: [
>        spec
>          package:  'Cryptography'
>          with: [
>            spec
>              file: 'Cryptography-zzz.111.mcz';
>              repository: 'http://www.squeaksource.com/Cryptography' ] ].
>
>    spec
>      for: #'gemstone'
>      do: [
>        spec
>          baseline: 'Cryptography'
>          with: [
>            spec
>              loads: #('CI');
>              repository: 'github://GsDevKit/Cryptography:master/repository' ] ]
>
> I’ve been looking for an example in the many BaselineOf but couldn’t find an example that specifies the package, version and repository.
>
> Cheers,
>
> J
> _______________________________________________
> Glass mailing list
> [hidden email]
> http://lists.gemtalksystems.com/mailman/listinfo/glass

_______________________________________________
Glass mailing list
[hidden email]
http://lists.gemtalksystems.com/mailman/listinfo/glass