Skip to content

Commit

Permalink
Merge branch 'main' into patch-rename-branch
Browse files Browse the repository at this point in the history
  • Loading branch information
Manoramsharma committed Aug 6, 2024
2 parents d66e761 + 16c16d5 commit b52baed
Show file tree
Hide file tree
Showing 9 changed files with 367 additions and 141 deletions.
77 changes: 77 additions & 0 deletions CONTRIBUTING.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,77 @@
# Contributing to KPM

Thank you for considering contributing to KPM! We welcome contributions in various forms, including bug reports, feature requests, code contributions, and documentation improvements. Please read through this guide to get started.

## Table of Contents

- [Introduction](#introduction)
- [Code of Conduct](#code-of-conduct)
- [How to Contribute](#how-to-contribute)
- [Reporting Bugs](#reporting-bugs)
- [Suggesting Enhancements](#suggesting-enhancements)
- [Contributing Code](#contributing-code)
- [Local Setup and Usage](#local-setup-and-usage)
- [Cloning the Repository](#cloning-the-repository)
- [Building the Project](#building-the-project)
- [Running the Project](#running-the-project)

## Introduction

KPM is the KCL package manager integrated with the `kcl mod` command. This document outlines the process to contribute to KPM and helps ensure that the community remains welcoming and productive.

## Code of Conduct

Please read and follow our [Code of Conduct](https://github.com/kcl-lang/kcl/blob/main/CODE_OF_CONDUCT.md) to ensure a welcoming environment for all contributors.

## How to Contribute to Code

### Reporting Bugs

If you find a bug, please [open an issue](https://github.com/kcl-lang/kpm/issues) and provide as much detail as possible. Include steps to reproduce the bug, your environment details, and any relevant logs.

### Suggesting Enhancements

We welcome suggestions for new features or improvements! Please [open an issue](https://github.com/kcl-lang/kpm/issues) to discuss your ideas before implementing them to ensure they align with the project’s goals.

For comprehensive instructions on how to contribute, including best practices and additional resources, please refer to the official contribution guide [here](https://www.kcl-lang.io/docs/community/contribute/).

## Local Setup and Usage

### Cloning the Repository

1. Fork the KPM repository on GitHub.
2. Clone your forked repository to your local machine:
```
git clone https://github.com/your-username/kpm.git
cd kpm
```

### Building the Project

1. Ensure you have [Go](https://golang.org/dl/) installed.
2. Install dependencies:
```
go mod tidy
```
3. Build the project:
```
make build
```

### Running the Project

1. Run the built executable:
```
./kpm
```
2. To see available commands and options, use:
```
./kpm --help
```

### Submitting Changes

1. Create a new branch for your changes: `git checkout -b my-feature`
2. Make your changes and commit them with a clear and concise commit message.
3. Push your changes to your fork: `git push origin my-feature`
4. Open a pull request on the main repository.
43 changes: 22 additions & 21 deletions go.mod
Original file line number Diff line number Diff line change
@@ -1,12 +1,12 @@
module kcl-lang.io/kpm

go 1.22
go 1.22.4

toolchain go1.22.5

require (
github.com/BurntSushi/toml v1.4.0
github.com/containers/image/v5 v5.31.1
github.com/containers/image/v5 v5.32.0
github.com/distribution/reference v0.6.0
github.com/dominikbraun/graph v0.23.0
github.com/elliotchance/orderedmap/v2 v2.2.0
Expand All @@ -15,7 +15,7 @@ require (
github.com/otiai10/copy v1.14.0
github.com/sirupsen/logrus v1.9.3
github.com/urfave/cli/v2 v2.25.0
golang.org/x/mod v0.19.0
golang.org/x/mod v0.20.0
gopkg.in/yaml.v3 v3.0.1
gotest.tools/v3 v3.5.1
kcl-lang.io/kcl-go v0.10.0-alpha.1.0.20240730084238-c647f95196d2
Expand All @@ -30,7 +30,6 @@ require (
github.com/AdaLogics/go-fuzz-headers v0.0.0-20230811130428-ced1acdcaa24 // indirect
github.com/Azure/go-ansiterm v0.0.0-20210617225240-d185dfc1b5a1 // indirect
github.com/Microsoft/go-winio v0.6.2 // indirect
github.com/Microsoft/hcsshim v0.12.3 // indirect
github.com/ProtonMail/go-crypto v1.0.0 // indirect
github.com/aws/aws-sdk-go v1.44.122 // indirect
github.com/bahlo/generic-list-go v0.2.0 // indirect
Expand All @@ -42,17 +41,19 @@ require (
github.com/chai2010/protorpc v1.1.4 // indirect
github.com/chainguard-dev/git-urls v1.0.2 // indirect
github.com/cloudflare/circl v1.3.7 // indirect
github.com/containerd/containerd v1.7.11 // indirect
github.com/containerd/containerd v1.7.20 // indirect
github.com/containerd/errdefs v0.1.0 // indirect
github.com/containerd/log v0.1.0 // indirect
github.com/containerd/platforms v0.2.1 // indirect
github.com/containers/libtrust v0.0.0-20230121012942-c1716e8a8d01 // indirect
github.com/containers/ocicrypt v1.1.10 // indirect
github.com/containers/storage v1.54.0 // indirect
github.com/cyphar/filepath-securejoin v0.2.5 // indirect
github.com/containers/ocicrypt v1.2.0 // indirect
github.com/containers/storage v1.55.0 // indirect
github.com/cyphar/filepath-securejoin v0.3.1 // indirect
github.com/davecgh/go-spew v1.1.2-0.20180830191138-d8f796af33cc // indirect
github.com/docker/cli v26.1.3+incompatible // indirect
github.com/docker/cli v27.1.1+incompatible // indirect
github.com/docker/distribution v2.8.3+incompatible // indirect
github.com/docker/docker v26.1.3+incompatible // indirect
github.com/docker/docker-credential-helpers v0.8.1 // indirect
github.com/docker/docker v27.1.1+incompatible // indirect
github.com/docker/docker-credential-helpers v0.8.2 // indirect
github.com/docker/go-connections v0.5.0 // indirect
github.com/docker/go-metrics v0.0.1 // indirect
github.com/docker/go-units v0.5.0 // indirect
Expand Down Expand Up @@ -86,7 +87,7 @@ require (
github.com/josharian/intern v1.0.0 // indirect
github.com/julienschmidt/httprouter v1.3.0 // indirect
github.com/kevinburke/ssh_config v1.2.0 // indirect
github.com/klauspost/compress v1.17.8 // indirect
github.com/klauspost/compress v1.17.9 // indirect
github.com/mailru/easyjson v0.7.7 // indirect
github.com/mattn/go-colorable v0.1.13 // indirect
github.com/mattn/go-isatty v0.0.17 // indirect
Expand All @@ -95,8 +96,8 @@ require (
github.com/mitchellh/go-wordwrap v1.0.1 // indirect
github.com/mitchellh/mapstructure v1.5.0 // indirect
github.com/moby/locker v1.0.1 // indirect
github.com/moby/sys/mountinfo v0.7.1 // indirect
github.com/moby/sys/user v0.1.0 // indirect
github.com/moby/sys/mountinfo v0.7.2 // indirect
github.com/moby/sys/user v0.2.0 // indirect
github.com/mohae/deepcopy v0.0.0-20170929034955-c48cc78d4826 // indirect
github.com/opencontainers/go-digest v1.0.0 // indirect
github.com/opencontainers/runtime-spec v1.2.0 // indirect
Expand All @@ -108,7 +109,7 @@ require (
github.com/prometheus/client_golang v1.19.0 // indirect
github.com/prometheus/client_model v0.6.0 // indirect
github.com/prometheus/common v0.51.1 // indirect
github.com/prometheus/procfs v0.12.0 // indirect
github.com/prometheus/procfs v0.15.1 // indirect
github.com/protocolbuffers/txtpbfmt v0.0.0-20240416193709-1e18ef0a7fdc // indirect
github.com/qri-io/jsonpointer v0.1.1 // indirect
github.com/sergi/go-diff v1.3.2-0.20230802210424-5b0b94c5c0d3 // indirect
Expand All @@ -125,9 +126,9 @@ require (
go.opentelemetry.io/otel/metric v1.24.0 // indirect
go.opentelemetry.io/otel/trace v1.24.0 // indirect
golang.org/x/crypto v0.25.0 // indirect
golang.org/x/exp v0.0.0-20240506185415-9bf2ced13842 // indirect
golang.org/x/exp v0.0.0-20240719175910-8a7402abbf56 // indirect
golang.org/x/net v0.27.0 // indirect
golang.org/x/oauth2 v0.20.0 // indirect
golang.org/x/oauth2 v0.21.0 // indirect
golang.org/x/sync v0.7.0 // indirect
golang.org/x/sys v0.22.0 // indirect
golang.org/x/text v0.16.0 // indirect
Expand All @@ -146,7 +147,7 @@ require (
)

require (
github.com/cpuguy83/go-md2man/v2 v2.0.2 // indirect
github.com/cpuguy83/go-md2man/v2 v2.0.4 // indirect
github.com/go-git/go-git/v5 v5.12.0
github.com/gofrs/flock v0.12.1
github.com/golang-collections/collections v0.0.0-20130729185459-604e922904d3
Expand All @@ -156,11 +157,11 @@ require (
github.com/kubescape/go-git-url v0.0.30
github.com/moby/term v0.5.0
github.com/onsi/ginkgo/v2 v2.19.0
github.com/onsi/gomega v1.33.1
github.com/onsi/gomega v1.34.1
github.com/russross/blackfriday/v2 v2.1.0 // indirect
github.com/stretchr/testify v1.9.0
github.com/thoas/go-funk v0.9.3
github.com/xrash/smetrics v0.0.0-20201216005158-039620a65673 // indirect
oras.land/oras-go v1.2.5
github.com/xrash/smetrics v0.0.0-20240521201337-686a1a2994c1 // indirect
oras.land/oras-go v1.2.6
oras.land/oras-go/v2 v2.5.0
)
Loading

0 comments on commit b52baed

Please sign in to comment.