Iceberg + github without github account

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

Iceberg + github without github account

Herby Vojčík
Hello!

I use Iceberg with metacelloIntegration: true to have gitlocal://
protocol available to load local git repos.

Problem I encountered (while trying to load Mocketry) that Iceberg
hijacks github:// protocol and it seems it needs ssh credentials that
actually allows access to github. But I don't have (and don't plan to
have, because reasons) a github account.

For the moment I work it around this way (the script I use to build my
work image):

---- BEGIN
| hereRef |
hereRef := Smalltalk imageDirectory asFileReference.
(IceRepositoryCreator new location: hereRef; subdirectory: 'src';
createRepository) register.

"BEGIN WORKAROUND"
IceGithubRepositoryType class compile: 'type ^ ''github+rw'''. "Work
around github:// needing access"
"END WORKAROUND"

Iceberg enableMetacelloIntegration: true.
Metacello new baseline: 'Towergame'; repository: 'gitlocal:///',
(hereRef / 'src') fullName; load.
Towergame configure.

Smalltalk snapshot: true andQuit: true.
---- END

Questions: Is there some more canonical way to get there? Will Iceberg
include something to make it easier to have readonly-github repos /
integrate only gitlocal://?

Thanks, Herby

Reply | Threaded
Open this post in threaded view
|

Re: Iceberg + github without github account

Peter Uhnak
In Iceberg (Version Control) settings, there should be an option "enable Metacello (or Monticello?) integration" that should disable this iirc.

On Fri, Jul 21, 2017 at 08:35:23PM +0200, Herby Vojčík wrote:

> Hello!
>
> I use Iceberg with metacelloIntegration: true to have gitlocal:// protocol
> available to load local git repos.
>
> Problem I encountered (while trying to load Mocketry) that Iceberg hijacks
> github:// protocol and it seems it needs ssh credentials that actually
> allows access to github. But I don't have (and don't plan to have, because
> reasons) a github account.
>
> For the moment I work it around this way (the script I use to build my work
> image):
>
> ---- BEGIN
> | hereRef |
> hereRef := Smalltalk imageDirectory asFileReference.
> (IceRepositoryCreator new location: hereRef; subdirectory: 'src';
> createRepository) register.
>
> "BEGIN WORKAROUND"
> IceGithubRepositoryType class compile: 'type ^ ''github+rw'''. "Work around
> github:// needing access"
> "END WORKAROUND"
>
> Iceberg enableMetacelloIntegration: true.
> Metacello new baseline: 'Towergame'; repository: 'gitlocal:///', (hereRef /
> 'src') fullName; load.
> Towergame configure.
>
> Smalltalk snapshot: true andQuit: true.
> ---- END
>
> Questions: Is there some more canonical way to get there? Will Iceberg
> include something to make it easier to have readonly-github repos /
> integrate only gitlocal://?
>
> Thanks, Herby
>

Reply | Threaded
Open this post in threaded view
|

Re: Iceberg + github without github account

Herby Vojčík
Peter Uhnak wrote:

> In Iceberg (Version Control) settings, there should be an option "enable Metacello (or Monticello?) integration" that should disable this iirc.
>
> On Fri, Jul 21, 2017 at 08:35:23PM +0200, Herby Vojčík wrote:
>> Hello!
>>
>> I use Iceberg with metacelloIntegration: true to have gitlocal:// protocol
>> available to load local git repos.
>>
>> Problem I encountered (while trying to load Mocketry) that Iceberg hijacks
>> github:// protocol and it seems it needs ssh credentials that actually
>> allows access to github. But I don't have (and don't plan to have, because
>> reasons) a github account.
>>
>> For the moment I work it around this way (the script I use to build my work
>> image):
>>
>> ---- BEGIN
>> | hereRef |
>> hereRef := Smalltalk imageDirectory asFileReference.
>> (IceRepositoryCreator new location: hereRef; subdirectory: 'src';
>> createRepository) register.
>>
>> "BEGIN WORKAROUND"
>> IceGithubRepositoryType class compile: 'type ^ ''github+rw'''. "Work around
>> github:// needing access"
>> "END WORKAROUND"
>>
>> Iceberg enableMetacelloIntegration: true.

This line adds that programmatically. But the metacello integration
integrates _both_ gitlocal:// support and the rewritten github://
support. The workaround above rewrites 'type' of the github (eg. scheme)
that Iceberg version hooks itself on, effectively removing it from
'github://' style urls (so the inherited, zip-based read-only one is used).

So if I disable it (as is the default case) I lose the gitlocal://
support (I am enabling it because of that).

The question here is, is there better / will there be official
possibility to only integrate one without the other (or integrate github
so it works without having the account there)?

Herby

>> Metacello new baseline: 'Towergame'; repository: 'gitlocal:///', (hereRef /
>> 'src') fullName; load.
>> Towergame configure.
>>
>> Smalltalk snapshot: true andQuit: true.
>> ---- END
>>
>> Questions: Is there some more canonical way to get there? Will Iceberg
>> include something to make it easier to have readonly-github repos /
>> integrate only gitlocal://?
>>
>> Thanks, Herby
>>
>