concourse / hg-resource Goto Github PK
View Code? Open in Web Editor NEWMercurial resource for Concourse
License: Apache License 2.0
Mercurial resource for Concourse
License: Apache License 2.0
Hi,
I wanted to use hg-resource, using http username+tokens for authentication, but it seems that this is not really supported by this resource.
and when i tried to do:
uri: https://{{repo_hg_user}}:{{repo_hg_password}}@some-url
I actually ended up in something like:
https://"username":"password"@some-url
So I can't be 100% sure, but after a upgrade the other day, all our resources started failing with:
open /root/.ssh/config: no such file or directory
Looking at the change I would guess this change is the offender:
75d0270#diff-539560c8bb7f0b5eb133bea29c18badb2943d366769fff45fb33a54120bde909R54
Looking at the previous atomicSave
function it looks like it actually checks for the dir and creates it if it doesn't exists.
Are we doing anything wrong since we're using root, should we run as another user, should we have the go module create the dir if necessary or should we have the directory created in the docker file instead?
I explicitly set the branch that the resource should be using, which in this case is default, but other branches which I'm creating from default are ending up on a pipeline, which then fails to use it with the following error:
abort: unknown revision 'x'!
Error checking out x: exit status 255`
I think this error is from sourceRepo.GetCurrentCommitId in out.go, but I assume the problem is in check. Should the hg log
calls in hg.go be using --branch
to filter results to a certain branch, e.g GetLatestCommitId and GetDescendantsOf? How would I go about debugging this?
I need to do some operations on the entire repository inside of a job. By setting the branch default
if the branch
option is unset, only changsets up to and including the tip of default are cloned and pulled. I need an argument to not include any branch. I can make the change, what is the preferred way to express branch(somebranch) | no-branch
in the config?
Hi!
I've been trying to set-up a concourse pipeline for a project of mine, and stumbled upon a problem: I can't clone a repository, that has git subrepositories.
error: check failed with exit status '1':
abort: couldn't find git for subrepo 'XXX'
(check git is installed and in your PATH)
Error updating working directory to tip: exit status 255
I was digging around and it seems the docker image for this resource needs git, and perhaps other vcs tools.
Can this feature be added in some reasonable timeframe? I'm willing to install a custom version of hg-resource if you could provide a hint on how to do that.
Tag should tag the current commit id of the working directory before pulling and rebasing. otherwise, manually triggering a job can lead to tagging the wrong commit.
Steps to reproduce:
Expected behavior:
The tip commit of the source repo should get tagged again.
Actual behavior:
Out pulls the tag commit from the destination repo. Since there is no new commit in the source repo, the old tag commit ("Added tag ... for changeset ...") is now at tip, and out tags it with the new version number.
cc @marco-m Moved from concourse/concourse#1244
With a pipeline using the mercurial resource
resources:
- name: concourse-native
type: hg
source:
uri: https://bitbucket.com/me/myrepo
branch: default
The checked out repo will have a directory named .hg
(the equivalent of .git
).
When doing a one-off build with fly execute
, it will upload the whole repo history, inside the .hg
directory.
If I try to avoid uploading the .hg
directory with --exclude-ignored
, fly prints an error message and stays stuck uploading (have to hit Ctrl-C):
concourse-native> fly -t tutorial execute --exclude-ignored --config ci/build-task.yml
executing build 34
could not determine ignored files: exit status 128
% Total % Received % Xferd Average Speed Time Time Time Current
Dload Upload Total Spent Left Speed
0 0 0 0 0 0 0 0 --:--:-- 0:00:24 --:--:-- 0^C
I just double-tested the exact setup but with a git repository and the .git
directory is not uploaded and the upload succeeds.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.