Skip to content
Snippets Groups Projects
Verified Commit af3c471d authored by Volker Schukai's avatar Volker Schukai :alien:
Browse files

chore: devenv env

parent 22c572c9
No related branches found
No related tags found
No related merge requests found
{
description = "ReqMan is a tool for managing requirements and test cases.";
# Nixpkgs / NixOS version to use.
inputs.nixpkgs.url = "nixpkgs/nixos-23.11";
outputs = {
self,
nixpkgs,
}: let
# to work with older version of flakes
lastModifiedDate = self.lastModifiedDate or self.lastModified or "19700101";
rootPath = ./.;
goPkgReleaseData = import "${rootPath}/project.nix";
goPkgName = goPkgReleaseData.name or "goPkg";
goPkgMnemonic = goPkgReleaseData.mnemonic or "go-pkg";
goPkgDescription = goPkgReleaseData.description or "this is a goPkg";
goPkgVersion = goPkgReleaseData.version or "0.1.0";
goPkgHash =
if (self ? shortRev)
then self.shortRev
else "dirty-not-for-production";
goPkgVendorHash = goPkgReleaseData.vendorHash or null;
# System types to support.
supportedSystems = ["x86_64-linux" "x86_64-windows" "x86_64-darwin"];
# Helper function to generate an attrset '{ x86_64-linux = f "x86_64-linux"; ... }'.
forAllSystems = nixpkgs.lib.genAttrs supportedSystems;
# Nixpkgs instantiated for supported system types.
nixpkgsFor = forAllSystems (system: import nixpkgs {inherit system;});
in {
packages = forAllSystems (system: let
pkgs = nixpkgsFor.${system};
in {
reqman = pkgs.buildGoModule {
name = goPkgName;
# In 'nix develop', we don't need a copy of the source tree
# in the Nix store.
src = ././source;
tags = []; # add your tags here (eq "netgo" "osusergo" "static_build")
ldflags = [
"-X 'main.version=${goPkgVersion}'"
"-X 'main.commit=${goPkgHash}'"
"-X 'main.build=${lastModifiedDate}'"
"-X 'main.name=${goPkgName}'"
"-X 'main.mnemonic=${goPkgMnemonic}'"
];
#vendorHash = pkgs.lib.fakeHash;
vendorHash = goPkgVendorHash;
meta = with nixpkgs.legacyPackages.${system}.lib; {
description = goPkgDescription;
homepage = "https://gitlab.schukai.com/oss/utilities/requirements-manager";
license = licenses.mit;
maintainers = with maintainers; ["schukai GmbH"];
};
};
default = self.packages.${system}.reqman;
});
# Add dependencies that are only needed for development
devShells = forAllSystems (system: let
pkgs = nixpkgsFor.${system};
in {
default = pkgs.mkShell {
buildInputs = with pkgs; [go gopls gotools go-tools];
};
});
# The default package for 'nix build'. This makes sense if the
# flake provides only one package or there is a clear "main"
# package.
defaultPackage = forAllSystems (system: self.packages.${system}.reqman);
};
}
MAKEFILE_IMPORT_PATH?=$(PROJECT_ROOT)development/makefiles/
\ No newline at end of file
{
name = "ReqMan";
mnemonic = "reqman";
description = "ReqMan is a tool for managing requirements and test cases.";
supportedSystems = ["x86_64-linux" "x86_64-darwin" "aarch64-linux" "aarch64-darwin"];
compileForSystems = ["linux/arm64" "linux/amd64" "darwin/amd64" "windows/amd64"];
modulePath = "https://gitlab.schukai.com/oss/utilities/requirements-manager";
version = "0.1.0"; ## don't change this line, it is updated automatically by GitLab CI
vendorHash = "sha256-yrNWU9cVs9zIFqNuHzndRG8C6E3sm8v5UdzwwW4HheM="; ## this is updated automatically by update-hashes
}
......@@ -3,7 +3,9 @@
<component name="Go" enabled="true" />
<component name="NewModuleRootManager" inherit-compiler-output="true">
<exclude-output />
<content url="file://$MODULE_DIR$" />
<content url="file://$MODULE_DIR$">
<excludeFolder url="file://$MODULE_DIR$/.idea/copilot/chatSessions" />
</content>
<orderEntry type="inheritedJdk" />
<orderEntry type="sourceFolder" forTests="false" />
</component>
......
File moved
File moved
File moved
......@@ -49,7 +49,6 @@ block-headings: true
`
//
const defaultNewRequirementTemplate = `
---
ID: %%ID%%
......
File moved
......@@ -11,7 +11,6 @@ import (
"gopkg.in/yaml.v3"
)
//
func collectStructureFromFiles(directory string) (error, map[string]*requirement) {
cleanedDirectory, err := filepath.Abs(path.Clean(directory))
......
File moved
......@@ -3,47 +3,57 @@ module gitlab.schukai.com/oss/utilities/requirements-manager
go 1.18
require (
github.com/go-git/go-git/v5 v5.4.2
github.com/gookit/color v1.5.1
github.com/go-git/go-git/v5 v5.11.0
github.com/gookit/color v1.5.4
github.com/jessevdk/go-flags v1.5.0
github.com/olekukonko/tablewriter v0.0.5
github.com/xanzy/go-gitlab v0.68.0
golang.org/x/text v0.3.7
github.com/xanzy/go-gitlab v0.100.0
golang.org/x/text v0.14.0
gopkg.in/yaml.v2 v2.4.0
gopkg.in/yaml.v3 v3.0.1
)
require (
github.com/Microsoft/go-winio v0.5.2 // indirect
github.com/ProtonMail/go-crypto v0.0.0-20220517143526-88bb52951d5b // indirect
github.com/acomagu/bufpipe v1.0.3 // indirect
dario.cat/mergo v1.0.0 // indirect
github.com/Microsoft/go-winio v0.6.1 // indirect
github.com/ProtonMail/go-crypto v1.0.0 // indirect
github.com/acomagu/bufpipe v1.0.4 // indirect
github.com/cloudflare/circl v1.3.7 // indirect
github.com/cyphar/filepath-securejoin v0.2.4 // indirect
github.com/davecgh/go-spew v1.1.1 // indirect
github.com/emirpasic/gods v1.18.1 // indirect
github.com/go-git/gcfg v1.5.0 // indirect
github.com/go-git/go-billy/v5 v5.3.1 // indirect
github.com/golang/protobuf v1.5.2 // indirect
github.com/go-git/gcfg v1.5.1-0.20230307220236-3a3c6141e376 // indirect
github.com/go-git/go-billy/v5 v5.5.0 // indirect
github.com/golang/groupcache v0.0.0-20210331224755-41bb18bfe9da // indirect
github.com/golang/protobuf v1.5.4 // indirect
github.com/google/go-querystring v1.1.0 // indirect
github.com/hashicorp/go-cleanhttp v0.5.2 // indirect
github.com/hashicorp/go-retryablehttp v0.7.1 // indirect
github.com/imdario/mergo v0.3.13 // indirect
github.com/hashicorp/go-retryablehttp v0.7.5 // indirect
github.com/imdario/mergo v0.3.16 // indirect
github.com/jbenet/go-context v0.0.0-20150711004518-d14ea06fba99 // indirect
github.com/kevinburke/ssh_config v1.2.0 // indirect
github.com/kr/pretty v0.2.1 // indirect
github.com/mattn/go-runewidth v0.0.13 // indirect
github.com/kr/pretty v0.3.1 // indirect
github.com/mattn/go-runewidth v0.0.15 // indirect
github.com/mitchellh/go-homedir v1.1.0 // indirect
github.com/rivo/uniseg v0.2.0 // indirect
github.com/sergi/go-diff v1.2.0 // indirect
github.com/pjbgf/sha1cd v0.3.0 // indirect
github.com/rivo/uniseg v0.4.7 // indirect
github.com/sergi/go-diff v1.3.1 // indirect
github.com/skeema/knownhosts v1.2.2 // indirect
github.com/src-d/gcfg v1.4.0 // indirect
github.com/xanzy/ssh-agent v0.3.1 // indirect
github.com/xo/terminfo v0.0.0-20210125001918-ca9a967f8778 // indirect
golang.org/x/crypto v0.0.0-20220525230936-793ad666bf5e // indirect
golang.org/x/net v0.0.0-20220621193019-9d032be2e588 // indirect
golang.org/x/oauth2 v0.0.0-20220608161450-d0670ef3b1eb // indirect
golang.org/x/sys v0.0.0-20220615213510-4f61da869c0c // indirect
golang.org/x/time v0.0.0-20220609170525-579cf78fd858 // indirect
google.golang.org/appengine v1.6.7 // indirect
google.golang.org/protobuf v1.28.0 // indirect
github.com/xanzy/ssh-agent v0.3.3 // indirect
github.com/xo/terminfo v0.0.0-20220910002029-abceb7e1c41e // indirect
golang.org/x/crypto v0.21.0 // indirect
golang.org/x/mod v0.16.0 // indirect
golang.org/x/net v0.22.0 // indirect
golang.org/x/oauth2 v0.18.0 // indirect
golang.org/x/sys v0.18.0 // indirect
golang.org/x/time v0.5.0 // indirect
golang.org/x/tools v0.19.0 // indirect
google.golang.org/appengine v1.6.8 // indirect
google.golang.org/protobuf v1.33.0 // indirect
gopkg.in/check.v1 v1.0.0-20201130134442-10cb98267c6c // indirect
gopkg.in/src-d/go-billy.v4 v4.3.2 // indirect
gopkg.in/warnings.v0 v0.1.2 // indirect
)
replace github.com/imdario/mergo => github.com/imdario/mergo v0.3.16
\ No newline at end of file
This diff is collapsed.
File moved
File moved
File moved
......@@ -7,12 +7,9 @@ import (
"golang.org/x/text/message"
)
// Wird beim Bauen per
// -ldflags "-X main.version=$app_version -X main.build=$(due --iso-8601 | tr -d "-" )"
// gesetzt
var (
version string
build string
// version string
// build string
printer *message.Printer
//sugar *zap.SugaredLogger
)
......
File moved
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment