You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I would prefer to see a more lightweight mechanism - if it's just a couple of files on e.g. github, why not just reference them directly in the paket configuration file?
We would somehow still want to reference specific versions or version
ranges.
On Aug 31, 2014 4:31 PM, "Isaac Abraham" [email protected] wrote:
I would prefer to see a more lightweight mechanism - if it's just a couple
of files on e.g. github, why not just reference them directly in the paket
configuration file?
—
Reply to this email directly or view it on GitHub #9 (comment).
Only thing that I'm not clear is that bundler still looks for a .gemspec file in the repo. I would also like to see the ability to simply reference particular files (or folders) against a particular git commit etc.
Bundler talks about avoiding http re: man in middle. But I'm of the opinion to start simple, just use http to start with - can always move to something else if needed?
I think its it's important that the potential impl approach of generating faux packages to not force any downstream complexity/unecessary bifurcation of code paths be considerd
I think its important that to keep this feature minimal, one should consider that there's a point where source packages are the right tool for the job
Based on the above all I'm saying is that an impl and design of this feature should not be blinkered to the presence of source packages
I had a quick play with the GitHub website (not the rate-limited GitHub API), and it's easy enough just to download a single file - not a folder - with a straight HTTP GET. You can specify any commit, branch or tag in the URI.
If this is enough to start with then I'll go ahead and do it.
On reflection, while source needs to deal with a http or a local or a unc path, what it then in turn does is pretty different to what this needs to do.
The main point I'd make is that, at the point where this would support other sources, where possible the syntax for specifiyng them should be shared insofar as that principle makes sense.
Yes depending on a single F# file would be a good start and actually help
the F# community a lot. That's for sure
On Sep 11, 2014 10:22 PM, "bartelink" [email protected] wrote:
On reflection, while source needs to deal with a http or a local or a unc
path, what it then in turn does is pretty different to what this needs to
do.
The main point I'd make is that, at the point where this would support
other sources, where possible the syntax for specifiyng them should be
shared insofar as that principle makes sense.
—
Reply to this email directly or view it on GitHub #9 (comment).
Just for your reference regarding source: bundler does not use source when pulling from git. It rather uses some parameters to the gemmethod, probably adding them to an internal list of sources (haven't checked).
I've modified the dependencies file format to allow capturing single files as dependencies.
There's no change to the lockfile because there's no indirect dependencies on a source file (I'm not parsing the file to see what other files are required!).
The files are downloaded and copied into a path underneath the location of the dependencies file.
I still have to do the .proj modification stuff as well as removing dependencies - but first just make sure you're happy with how it looks so far. I've modified the sample dependency file in the C# test project to illustrate how it works.
I can't see any diff. Can you please create a pull request and mark it as
WIP? Thanks.
Btw: I think we have to add it also to the lockfile since this is the only
thing we read during a normal install.
On Sep 12, 2014 12:37 AM, "Isaac Abraham" [email protected] wrote:
I've modified the dependencies file format to allow capturing single
files as dependencies.
There's no change to the lockfile because there's no indirect
dependencies on a source file (I'm not parsing the file to see what other
files are required!).
The files are downloaded and copied into a path underneath the
location of the dependencies file.
I still have to do the .proj modification stuff as well as removing
dependencies - but first just make sure you're happy with how it looks so
far.
—
Reply to this email directly or view it on GitHub #9 (comment).
From: Steffen Forkmannmailto:[email protected]
Sent: 12/09/2014 07:19
To: fsprojects/Paketmailto:[email protected]
Cc: Isaac Abrahammailto:[email protected]
Subject: Re: [Paket] Allow to depend on simple F# or C# code files (#9)
I can't see any diff. Can you please create a pull request and mark it as
WIP? Thanks.
Btw: I think we have to add it also to the lockfile since this is the only
thing we read during a normal install.
On Sep 12, 2014 12:37 AM, "Isaac Abraham" [email protected] wrote:
I've modified the dependencies file format to allow capturing single
files as dependencies.
There's no change to the lockfile because there's no indirect
dependencies on a source file (I'm not parsing the file to see what other
files are required!).
The files are downloaded and copied into a path underneath the
location of the dependencies file.
I still have to do the .proj modification stuff as well as removing
dependencies - but first just make sure you're happy with how it looks so
far.
—
Reply to this email directly or view it on GitHub #9 (comment).
Reply to this email directly or view it on GitHub: #9 (comment)
So currently we can import single files from GitHub into projects. Is anyone looking at taking this forward - I think we need to still look at removal of files (probably a Packet=true tag will be needed on individual files) as well as how files interoperate with the references file / individual projects.
Activity
agross commentedon Aug 31, 2014
Some people call these minimods. They use the normal nuget infrastructure but install source files and add them to the repo.
isaacabraham commentedon Aug 31, 2014
I would prefer to see a more lightweight mechanism - if it's just a couple of files on e.g. github, why not just reference them directly in the paket configuration file?
forki commentedon Aug 31, 2014
We would somehow still want to reference specific versions or version
ranges.
On Aug 31, 2014 4:31 PM, "Isaac Abraham" [email protected] wrote:
agross commentedon Aug 31, 2014
Actually, bundler has something like that. You can specify a git source for a gem and even tell it to track master or a specific git commit.
forki commentedon Aug 31, 2014
Yes. That's what we should implement. Any links?
On Aug 31, 2014 4:43 PM, "Alexander Groß" [email protected] wrote:
agross commentedon Aug 31, 2014
Bundler docs ;-)
It also support paths:
gem 'foo', :path => '/somewhere'
Git looks very similar.
agross commentedon Aug 31, 2014
http://bundler.io/git.html
isaacabraham commentedon Aug 31, 2014
Only thing that I'm not clear is that bundler still looks for a .gemspec file in the repo. I would also like to see the ability to simply reference particular files (or folders) against a particular git commit etc.
forki commentedon Aug 31, 2014
Do we need a git implementation for this? Or is http download enough?
isaacabraham commentedon Aug 31, 2014
Bundler talks about avoiding http re: man in middle. But I'm of the opinion to start simple, just use http to start with - can always move to something else if needed?
agross commentedon Aug 31, 2014
Bundler requires git in path and just calls the executable.
isaacabraham commentedon Aug 31, 2014
@agross would you need to provide auth then?
agross commentedon Aug 31, 2014
@isaacabraham I never used bundler with authenticated git repos. I think the git defaults would work if you have the keypairs for SSH access available. It seem's there's a solution for authenticated HTTP repos as well: https://gist.github.com/masonforest/4048732 Other than that, you can still embed username and password in the HTTP URL (if you use Gitlab, for example).
forki commentedon Aug 31, 2014
git in path is OK for me. We do the same in FAKE.
On Aug 31, 2014 6:16 PM, "Alexander Groß" [email protected] wrote:
[-]Allow to depend on simple F# code files[/-][+]Allow to depend on simple F# or C# code files[/+]12 remaining items
ilkerde commentedon Sep 11, 2014
+1 @forki
One thing to note for this issue: We should enable having a dependency on any file, even those with no metadata (i.e. no git tag).
bartelink commentedon Sep 11, 2014
@forki @isaacabraham I dont disagree but
Based on the above all I'm saying is that an impl and design of this feature should not be blinkered to the presence of source packages
bartelink commentedon Sep 11, 2014
@ilkerde maybe on the local file system / unc path too ?
(Maybe impl can share a general location specification with package sources to some degree?)
ilkerde commentedon Sep 11, 2014
@bartelink I think it's enough for the time being just to have one concrete impl (in this case sth. like fetching a file from a github repo).
Taking additional sources into consideration feels like premature generalization to me.
isaacabraham commentedon Sep 11, 2014
I had a quick play with the GitHub website (not the rate-limited GitHub API), and it's easy enough just to download a single file - not a folder - with a straight HTTP GET. You can specify any commit, branch or tag in the URI.
If this is enough to start with then I'll go ahead and do it.
bartelink commentedon Sep 11, 2014
@ilkerde Fair enough, makes sense.
On reflection, while
sourceneeds to deal with a http or a local or a unc path, what it then in turn does is pretty different to what this needs to do.The main point I'd make is that, at the point where this would support other sources, where possible the syntax for specifiyng them should be shared insofar as that principle makes sense.
forki commentedon Sep 11, 2014
Yes depending on a single F# file would be a good start and actually help
the F# community a lot. That's for sure
On Sep 11, 2014 10:22 PM, "bartelink" [email protected] wrote:
agross commentedon Sep 11, 2014
Just for your reference regarding
source: bundler does not usesourcewhen pulling from git. It rather uses some parameters to thegemmethod, probably adding them to an internal list of sources (haven't checked).There are also some nice built-in git sources for GitHub, Gist and Bitbucket:
And you can define new ones as well:
http://bundler.io/git.html
isaacabraham commentedon Sep 11, 2014
@forki before I go any further could you review https://github.com/isaacabraham/Paket/tree/github-files?
I still have to do the .proj modification stuff as well as removing dependencies - but first just make sure you're happy with how it looks so far. I've modified the sample dependency file in the C# test project to illustrate how it works.
forki commentedon Sep 12, 2014
I can't see any diff. Can you please create a pull request and mark it as
WIP? Thanks.
Btw: I think we have to add it also to the lockfile since this is the only
thing we read during a normal install.
On Sep 12, 2014 12:37 AM, "Isaac Abraham" [email protected] wrote:
isaacabraham commentedon Sep 12, 2014
K will do.
From: Steffen Forkmannmailto:[email protected]
Sent: 12/09/2014 07:19
To: fsprojects/Paketmailto:[email protected]
Cc: Isaac Abrahammailto:[email protected]
Subject: Re: [Paket] Allow to depend on simple F# or C# code files (#9)
I can't see any diff. Can you please create a pull request and mark it as
WIP? Thanks.
Btw: I think we have to add it also to the lockfile since this is the only
thing we read during a normal install.
On Sep 12, 2014 12:37 AM, "Isaac Abraham" [email protected] wrote:
Reply to this email directly or view it on GitHub:
#9 (comment)
isaacabraham commentedon Sep 12, 2014
Here's the changes BTW for the moment (without the lockfile stuff):
https://github.com/isaacabraham/Paket/compare/github-files
isaacabraham commentedon Sep 16, 2014
So currently we can import single files from GitHub into projects. Is anyone looking at taking this forward - I think we need to still look at removal of files (probably a Packet=true tag will be needed on individual files) as well as how files interoperate with the references file / individual projects.
forki commentedon Sep 16, 2014
yes I'm currently dogfooding this and will open new issues.